#[non_exhaustive]pub struct Lines {
pub cts: bool,
pub dsr: bool,
pub ring: bool,
pub carrier: bool,
}Expand description
Modem status lines a FakeDevice reports.
use serialplugin_testing::Lines;
let lines = Lines::default().cts(false).ring(true);
assert!(!lines.cts && lines.dsr && lines.ring && !lines.carrier);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cts: boolClear to send.
dsr: boolData set ready.
ring: boolRing indicator.
carrier: boolCarrier detect.
Implementations§
Trait Implementations§
impl Copy for Lines
impl Eq for Lines
impl StructuralPartialEq for Lines
Auto Trait Implementations§
impl Forget for Lines
impl Freeze for Lines
impl Move for Lines
impl RefUnwindSafe for Lines
impl Send for Lines
impl Sync for Lines
impl Unpin for Lines
impl UnsafeUnpin for Lines
impl UnwindSafe for Lines
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