Struct SerialState

Source
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§

Source§

impl SerialState

Source

pub const SIZE: u8 = 10u8

Size of this notification on the wire in bytes

Source

pub fn bytes(&self) -> [u8; 10]

Returns the wire representation of this notification

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.