Skip to main content

ExPortWrite

Trait ExPortWrite 

Source
pub trait ExPortWrite {
    type ExternalTraitSpecificationFor: PortWrite;

    // Required method
    unsafe fn write_to_port(port: u16, value: Self)
       where Self: Sized;
}
Expand description

Trusted specification boundary for values that can be written to an x86 I/O port.

Required Associated Types§

Required Methods§

Source

unsafe exec fn write_to_port(port: u16, value: Self)
where Self: Sized,

requires
valid_io_port_access::<Self>(port),

A port write has no modeled logical effect on kernel memory.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§