Struct x86_64::instructions::port::PortGeneric [−][src]
pub struct PortGeneric<T, A> { /* fields omitted */ }
Expand description
An I/O port.
The port reads or writes values of type T
and has read/write access specified by A
.
Use the provided marker types or aliases to get a port type with the access you need:
PortGeneric<T, ReadWriteAccess>
->Port<T>
PortGeneric<T, ReadOnlyAccess>
->PortReadOnly<T>
PortGeneric<T, WriteOnlyAccess>
->PortWriteOnly<T>
Implementations
Creates an I/O port with the given port number.
Trait Implementations
Auto Trait Implementations
impl<T, A> Send for PortGeneric<T, A> where
A: Send,
T: Send,
impl<T, A> Sync for PortGeneric<T, A> where
A: Sync,
T: Sync,
impl<T, A> Unpin for PortGeneric<T, A> where
A: Unpin,
T: Unpin,