Struct port_io::PortWriteOnly
source · pub struct PortWriteOnly<T: PortOut> { /* private fields */ }
Expand description
A write-only I/O port over an arbitrary type supporting the InOut
interface,
which is only u8
, u16
, and u32
.
Implementations§
source§impl<T: PortOut> PortWriteOnly<T>
impl<T: PortOut> PortWriteOnly<T>
sourcepub const fn new(port: u16) -> PortWriteOnly<T>
pub const fn new(port: u16) -> PortWriteOnly<T>
Create a new read-only I/O port.
sourcepub const fn port_address(&self) -> u16
pub const fn port_address(&self) -> u16
Returns the address of this port.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for PortWriteOnly<T>where T: RefUnwindSafe,
impl<T> Send for PortWriteOnly<T>where T: Send,
impl<T> Sync for PortWriteOnly<T>where T: Sync,
impl<T> Unpin for PortWriteOnly<T>where T: Unpin,
impl<T> UnwindSafe for PortWriteOnly<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more