pub struct ModemSignals {
pub dtr: bool,
pub rts: bool,
pub ri: bool,
pub dcd: bool,
}Expand description
Modem signal bits for MSC (Modem Status Command)
Fields§
§dtr: boolData Terminal Ready
rts: boolRequest To Send
ri: boolRing Indicator
dcd: boolData Carrier Detect
Implementations§
Trait Implementations§
Source§impl Clone for ModemSignals
impl Clone for ModemSignals
Source§fn clone(&self) -> ModemSignals
fn clone(&self) -> ModemSignals
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModemSignals
impl Debug for ModemSignals
Source§impl Default for ModemSignals
impl Default for ModemSignals
Source§fn default() -> ModemSignals
fn default() -> ModemSignals
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModemSignals
impl PartialEq for ModemSignals
impl Copy for ModemSignals
impl Eq for ModemSignals
impl StructuralPartialEq for ModemSignals
Auto Trait Implementations§
impl Freeze for ModemSignals
impl RefUnwindSafe for ModemSignals
impl Send for ModemSignals
impl Sync for ModemSignals
impl Unpin for ModemSignals
impl UnwindSafe for ModemSignals
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)