Struct ChangeDuration
#[repr(transparent)]pub struct ChangeDuration(pub u8);Expand description
How long a preference change lasts (nas_change_duration_enum_v01).
Tuple Fields§
§0: u8Implementations§
§impl ChangeDuration
impl ChangeDuration
pub const POWER_CYCLE: Self
pub const POWER_CYCLE: Self
Until the next power cycle.
Value 0.
pub const PERMANENT: Self
pub const PERMANENT: Self
Until a client changes it. The modem uses this if the TLV is missing.
Value 1.
Trait Implementations§
§impl Clone for ChangeDuration
impl Clone for ChangeDuration
§fn clone(&self) -> ChangeDuration
fn clone(&self) -> ChangeDuration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChangeDuration
§impl Debug for ChangeDuration
impl Debug for ChangeDuration
§impl Decode for ChangeDuration
impl Decode for ChangeDuration
§impl Encode for ChangeDuration
impl Encode for ChangeDuration
impl Eq for ChangeDuration
§impl From<ChangeDuration> for u8
impl From<ChangeDuration> for u8
§fn from(value: ChangeDuration) -> Self
fn from(value: ChangeDuration) -> Self
Converts to this type from the input type.
§impl From<u8> for ChangeDuration
impl From<u8> for ChangeDuration
§impl Hash for ChangeDuration
impl Hash for ChangeDuration
§impl PartialEq for ChangeDuration
impl PartialEq for ChangeDuration
impl StructuralPartialEq for ChangeDuration
Auto Trait Implementations§
impl Freeze for ChangeDuration
impl RefUnwindSafe for ChangeDuration
impl Send for ChangeDuration
impl Sync for ChangeDuration
impl Unpin for ChangeDuration
impl UnsafeUnpin for ChangeDuration
impl UnwindSafe for ChangeDuration
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