Struct libftd2xx::ModemStatus
source · pub struct ModemStatus(/* private fields */);
Expand description
FTDI modem status.
This is returned by modem_status
.
Implementations§
source§impl ModemStatus
impl ModemStatus
sourcepub const fn new(status: u32) -> ModemStatus
pub const fn new(status: u32) -> ModemStatus
Construct a new ModemStatus
from a raw value.
sourcepub fn line_status(&self) -> u8
pub fn line_status(&self) -> u8
Get the line status byte.
sourcepub fn modem_status(&self) -> u8
pub fn modem_status(&self) -> u8
Get the modem status byte.
sourcepub fn clear_to_send(&self) -> bool
pub fn clear_to_send(&self) -> bool
Clear to send (CTS) status.
sourcepub fn data_set_ready(&self) -> bool
pub fn data_set_ready(&self) -> bool
Data set ready (DSR) status.
sourcepub fn ring_indicator(&self) -> bool
pub fn ring_indicator(&self) -> bool
Ring indicator (RI) status.
sourcepub fn data_carrier_detect(&self) -> bool
pub fn data_carrier_detect(&self) -> bool
Data carrier detect (DCD) status.
sourcepub fn overrun_error(&self) -> bool
pub fn overrun_error(&self) -> bool
Overrun error (OE) status.
sourcepub fn parity_error(&self) -> bool
pub fn parity_error(&self) -> bool
Parity error (PE) status.
sourcepub fn framing_error(&self) -> bool
pub fn framing_error(&self) -> bool
Framing error (FE) status.
sourcepub fn break_interrupt(&self) -> bool
pub fn break_interrupt(&self) -> bool
Break interrupt (BI) status.
Trait Implementations§
source§impl Clone for ModemStatus
impl Clone for ModemStatus
source§fn clone(&self) -> ModemStatus
fn clone(&self) -> ModemStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ModemStatus
impl Debug for ModemStatus
source§impl Ord for ModemStatus
impl Ord for ModemStatus
source§fn cmp(&self, other: &ModemStatus) -> Ordering
fn cmp(&self, other: &ModemStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ModemStatus
impl PartialEq for ModemStatus
source§fn eq(&self, other: &ModemStatus) -> bool
fn eq(&self, other: &ModemStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ModemStatus
impl PartialOrd for ModemStatus
source§fn partial_cmp(&self, other: &ModemStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &ModemStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ModemStatus
impl Eq for ModemStatus
impl StructuralPartialEq for ModemStatus
Auto Trait Implementations§
impl RefUnwindSafe for ModemStatus
impl Send for ModemStatus
impl Sync for ModemStatus
impl Unpin for ModemStatus
impl UnwindSafe for ModemStatus
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