pub trait PortIn { // Required method unsafe fn port_in(port: u16) -> Self; }
This trait is defined for any type which can be read from a port. x86 processors support Port IO for u8, u16 and u32.
u8
u16
u32
Read a value from the specified port.