pub struct CmuxTimers {
pub t1: Duration,
pub n2: u32,
pub t2: Duration,
}Expand description
27.010 link timers, from the AT+CMUX= parameters (see CmuxTimers::from_command).
Fields§
§t1: DurationT1, acknowledgement timer: how long to wait for UA before resending SABM.
n2: u32N2, maximum number of retransmissions.
t2: DurationT2, response timer for control-channel commands (CLD).
Implementations§
Source§impl CmuxTimers
impl CmuxTimers
Sourcepub fn from_command(command: &str) -> Self
pub fn from_command(command: &str) -> Self
T1, N2 and T2 are the 5th–7th +CMUX parameters (T1/T2 in 10 ms units);
absent, empty or out of the 27.007 range (T1 1..=255, N2 0..=100, T2 2..=255):
the default. With neither T1 nor N2 in the command SABM is sent once (N2 = 0)
and its UA gets the whole open timeout, as in 4.x.
Trait Implementations§
Source§impl Clone for CmuxTimers
impl Clone for CmuxTimers
impl Copy for CmuxTimers
Source§impl Debug for CmuxTimers
impl Debug for CmuxTimers
Source§impl Default for CmuxTimers
impl Default for CmuxTimers
impl Eq for CmuxTimers
Source§impl PartialEq for CmuxTimers
impl PartialEq for CmuxTimers
impl StructuralPartialEq for CmuxTimers
Auto Trait Implementations§
impl Forget for CmuxTimers
impl Freeze for CmuxTimers
impl RefUnwindSafe for CmuxTimers
impl Send for CmuxTimers
impl Sync for CmuxTimers
impl Unpin for CmuxTimers
impl UnsafeUnpin for CmuxTimers
impl UnwindSafe for CmuxTimers
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