pub struct ModemLineSnapshot {
pub dtr: bool,
pub rts: bool,
}Expand description
Snapshot of the modem output lines as rtcom knows them.
Unlike ModemStatus (which reflects the input-side lines CTS / DSR /
RI / CD and requires polling the device), the output lines DTR and RTS
are driven by rtcom itself — so the current state is simply whatever
the Session last wrote. The TUI modem-control dialog (v0.2 task 14)
consumes this snapshot for its read-only “Current output lines”
display.
Fields§
§dtr: boolData Terminal Ready output line: true when asserted.
rts: boolRequest To Send output line: true when asserted.
Trait Implementations§
Source§impl Clone for ModemLineSnapshot
impl Clone for ModemLineSnapshot
Source§fn clone(&self) -> ModemLineSnapshot
fn clone(&self) -> ModemLineSnapshot
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 ModemLineSnapshot
impl Debug for ModemLineSnapshot
Source§impl Default for ModemLineSnapshot
impl Default for ModemLineSnapshot
Source§fn default() -> ModemLineSnapshot
fn default() -> ModemLineSnapshot
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModemLineSnapshot
impl PartialEq for ModemLineSnapshot
impl Copy for ModemLineSnapshot
impl Eq for ModemLineSnapshot
impl StructuralPartialEq for ModemLineSnapshot
Auto Trait Implementations§
impl Freeze for ModemLineSnapshot
impl RefUnwindSafe for ModemLineSnapshot
impl Send for ModemLineSnapshot
impl Sync for ModemLineSnapshot
impl Unpin for ModemLineSnapshot
impl UnsafeUnpin for ModemLineSnapshot
impl UnwindSafe for ModemLineSnapshot
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