Trait port_io::PortIn

source ·
pub trait PortIn {
    // Required method
    unsafe fn port_in(port: u16) -> Self;
}
Expand description

This trait is defined for any type which can be read from a port. x86 processors support Port IO for u8, u16 and u32.

Required Methods§

source

unsafe fn port_in(port: u16) -> Self

Read a value from the specified port.

Implementations on Foreign Types§

source§

impl PortIn for u16

source§

unsafe fn port_in(port: u16) -> Self

source§

impl PortIn for u8

source§

unsafe fn port_in(port: u16) -> Self

source§

impl PortIn for u32

source§

unsafe fn port_in(port: u16) -> Self

Implementors§