Struct libftd2xx::ModemStatus [−][src]
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]
fn clone(&self) -> ModemStatus
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ModemStatus
[src]
impl Debug for ModemStatus
[src]
impl Eq for ModemStatus
[src]
impl Ord for ModemStatus
[src]
fn cmp(&self, other: &ModemStatus) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<ModemStatus> for ModemStatus
[src]
fn eq(&self, other: &ModemStatus) -> bool
[src]
fn ne(&self, other: &ModemStatus) -> bool
[src]
impl PartialOrd<ModemStatus> for ModemStatus
[src]
fn partial_cmp(&self, other: &ModemStatus) -> Option<Ordering>
[src]
fn lt(&self, other: &ModemStatus) -> bool
[src]
fn le(&self, other: &ModemStatus) -> bool
[src]
fn gt(&self, other: &ModemStatus) -> bool
[src]
fn ge(&self, other: &ModemStatus) -> bool
[src]
impl StructuralEq for ModemStatus
[src]
impl StructuralPartialEq for ModemStatus
[src]
Auto Trait Implementations
impl RefUnwindSafe for ModemStatus
[src]
impl Send for ModemStatus
[src]
impl Sync for ModemStatus
[src]
impl Unpin for ModemStatus
[src]
impl UnwindSafe for ModemStatus
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,