pub struct SerialState {
pub interface: u8,
pub bOverRun: bool,
pub bParity: bool,
pub bFraming: bool,
pub bRingSignal: bool,
pub bBreak: bool,
pub bTxCarrier: bool,
pub bRxCarrier: bool,
}
Expand description
Serial state notification
Fields§
§interface: u8
Interface index
bOverRun: bool
Received data has been discarded due to overrun in the device.
bParity: bool
A parity error has occurred
bFraming: bool
A framing error has occurred
bRingSignal: bool
State of ring signal detection of the device.
bBreak: bool
State of break detection mechanism of the device
bTxCarrier: bool
State of transmission carrier. This signal corresponds to V.24 signal 106 and RS-232 signal DSR
bRxCarrier: bool
State of receiver carrier detection mechanism of device. This signal corresponds to V.24 signal 109 and RS-232 signal DCD
Implementations§
Auto Trait Implementations§
impl Freeze for SerialState
impl RefUnwindSafe for SerialState
impl Send for SerialState
impl Sync for SerialState
impl Unpin for SerialState
impl UnwindSafe for SerialState
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