Skip to main content

CmuxTimers

Struct CmuxTimers 

Source
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: Duration

T1, acknowledgement timer: how long to wait for UA before resending SABM.

§n2: u32

N2, maximum number of retransmissions.

§t2: Duration

T2, response timer for control-channel commands (CLD).

Implementations§

Source§

impl CmuxTimers

Source

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

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CmuxTimers

Source§

impl Debug for CmuxTimers

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CmuxTimers

Source§

fn default() -> Self

The 27.010 defaults: T1 100 ms, N2 3, T2 300 ms.

Source§

impl Eq for CmuxTimers

Source§

impl PartialEq for CmuxTimers

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CmuxTimers

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.