Struct vm_superio::serial::SerialState
source · [−]pub struct SerialState {
pub baud_divisor_low: u8,
pub baud_divisor_high: u8,
pub interrupt_enable: u8,
pub interrupt_identification: u8,
pub line_control: u8,
pub line_status: u8,
pub modem_control: u8,
pub modem_status: u8,
pub scratch: u8,
pub in_buffer: Vec<u8>,
}
Expand description
The state of the Serial device.
Fields
baud_divisor_low: u8
Divisor Latch Low Byte
baud_divisor_high: u8
Divisor Latch High Byte
interrupt_enable: u8
Interrupt Enable Register
interrupt_identification: u8
Interrupt Identification Register
line_control: u8
Line Control Register
line_status: u8
Line Status Register
modem_control: u8
Modem Control Register
modem_status: u8
Modem Status Register
scratch: u8
Scratch Register
in_buffer: Vec<u8>
Transmitter Holding Buffer/Receiver Buffer
Trait Implementations
sourceimpl Clone for SerialState
impl Clone for SerialState
sourcefn clone(&self) -> SerialState
fn clone(&self) -> SerialState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SerialState
impl Debug for SerialState
sourceimpl Default for SerialState
impl Default for SerialState
sourceimpl PartialEq<SerialState> for SerialState
impl PartialEq<SerialState> for SerialState
sourcefn eq(&self, other: &SerialState) -> bool
fn eq(&self, other: &SerialState) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SerialState) -> bool
fn ne(&self, other: &SerialState) -> bool
This method tests for !=
.
impl StructuralPartialEq for SerialState
Auto Trait Implementations
impl RefUnwindSafe for SerialState
impl Send for SerialState
impl Sync for SerialState
impl Unpin for SerialState
impl UnwindSafe for SerialState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more