pub struct ModemLog(/* private fields */);Expand description
What a Modem saw, in order; stays usable after the modem moved into a device.
Implementations§
Source§impl ModemLog
impl ModemLog
Sourcepub fn wait_command(&self, line: &str) -> Command
pub fn wait_command(&self, line: &str) -> Command
Wait until the modem read line (on any channel, in any case).
Sourcepub fn wait_frame(&self, what: &str, pred: impl Fn(&Frame) -> bool) -> Frame
pub fn wait_frame(&self, what: &str, pred: impl Fn(&Frame) -> bool) -> Frame
Wait until a frame satisfies pred; returns it.
Sourcepub fn cld_before_ua(&self) -> bool
pub fn cld_before_ua(&self) -> bool
The host sent CLD before it read the UA to its last DISC. Real modems (Quectel M26)
answer such a CLD late. Only known on a FakeDevice.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ModemLog
impl Freeze for ModemLog
impl Move for ModemLog
impl RefUnwindSafe for ModemLog
impl Send for ModemLog
impl Sync for ModemLog
impl Unpin for ModemLog
impl UnsafeUnpin for ModemLog
impl UnwindSafe for ModemLog
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