pub struct ModemStatus {
pub cts: bool,
pub dsr: bool,
pub dcd: bool,
pub ri: bool,
}Expand description
Represents the status of the modem signals.
Fields§
§cts: boolCTS state: true=Active, false=Inactive
dsr: boolDSR state: true=Active, false=Inactive
dcd: boolDCD state: true=Active, false=Inactive
ri: boolRI state: true=Active, false=Inactive
Trait Implementations§
Source§impl Clone for ModemStatus
impl Clone for ModemStatus
Source§fn clone(&self) -> ModemStatus
fn clone(&self) -> ModemStatus
Returns a duplicate 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 PartialEq for ModemStatus
impl PartialEq for ModemStatus
impl Copy for ModemStatus
impl Eq for ModemStatus
impl StructuralPartialEq for ModemStatus
Auto Trait Implementations§
impl Freeze for ModemStatus
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