Struct libftd2xx::ModemStatus[][src]

pub struct ModemStatus(_);

FTDI modem status.

This is returned by modem_status.

Implementations

impl ModemStatus[src]

pub const fn new(status: u32) -> ModemStatus[src]

Construct a new ModemStatus from a raw value.

pub fn line_status(&self) -> u8[src]

Get the line status byte.

pub fn modem_status(&self) -> u8[src]

Get the modem status byte.

pub fn clear_to_send(&self) -> bool[src]

Clear to send (CTS) status.

pub fn data_set_ready(&self) -> bool[src]

Data set ready (DSR) status.

pub fn ring_indicator(&self) -> bool[src]

Ring indicator (RI) status.

pub fn data_carrier_detect(&self) -> bool[src]

Data carrier detect (DCD) status.

pub fn overrun_error(&self) -> bool[src]

Overrun error (OE) status.

pub fn parity_error(&self) -> bool[src]

Parity error (PE) status.

pub fn framing_error(&self) -> bool[src]

Framing error (FE) status.

pub fn break_interrupt(&self) -> bool[src]

Break interrupt (BI) status.

Trait Implementations

impl Clone for ModemStatus[src]

impl Copy for ModemStatus[src]

impl Debug for ModemStatus[src]

impl Eq for ModemStatus[src]

impl Ord for ModemStatus[src]

impl PartialEq<ModemStatus> for ModemStatus[src]

impl PartialOrd<ModemStatus> for ModemStatus[src]

impl StructuralEq for ModemStatus[src]

impl StructuralPartialEq for ModemStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.