pub struct FreshnessPeriod {
pub freshness_period: NonNegativeInteger,
}
Fields§
§freshness_period: NonNegativeInteger
Implementations§
Trait Implementations§
Source§impl AsMut<NonNegativeInteger> for FreshnessPeriod
impl AsMut<NonNegativeInteger> for FreshnessPeriod
Source§fn as_mut(&mut self) -> &mut NonNegativeInteger
fn as_mut(&mut self) -> &mut NonNegativeInteger
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<NonNegativeInteger> for FreshnessPeriod
impl AsRef<NonNegativeInteger> for FreshnessPeriod
Source§fn as_ref(&self) -> &NonNegativeInteger
fn as_ref(&self) -> &NonNegativeInteger
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for FreshnessPeriod
impl Clone for FreshnessPeriod
Source§fn clone(&self) -> FreshnessPeriod
fn clone(&self) -> FreshnessPeriod
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FreshnessPeriod
impl Debug for FreshnessPeriod
Source§impl Default for FreshnessPeriod
impl Default for FreshnessPeriod
Source§fn default() -> FreshnessPeriod
fn default() -> FreshnessPeriod
Returns the “default value” for a type. Read more
Source§impl Display for FreshnessPeriod
impl Display for FreshnessPeriod
Source§impl From<FreshnessPeriod> for NonNegativeInteger
impl From<FreshnessPeriod> for NonNegativeInteger
Source§fn from(original: FreshnessPeriod) -> Self
fn from(original: FreshnessPeriod) -> Self
Converts to this type from the input type.
Source§impl From<NonNegativeInteger> for FreshnessPeriod
impl From<NonNegativeInteger> for FreshnessPeriod
Source§fn from(original: NonNegativeInteger) -> FreshnessPeriod
fn from(original: NonNegativeInteger) -> FreshnessPeriod
Converts to this type from the input type.
Source§impl Hash for FreshnessPeriod
impl Hash for FreshnessPeriod
Source§impl Ord for FreshnessPeriod
impl Ord for FreshnessPeriod
Source§fn cmp(&self, other: &FreshnessPeriod) -> Ordering
fn cmp(&self, other: &FreshnessPeriod) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FreshnessPeriod
impl PartialEq for FreshnessPeriod
Source§impl PartialOrd for FreshnessPeriod
impl PartialOrd for FreshnessPeriod
Source§impl Tlv for FreshnessPeriod
impl Tlv for FreshnessPeriod
Source§fn inner_size(&self) -> usize
fn inner_size(&self) -> usize
The size of the payload contained within this TLV Read more
Source§fn critical() -> bool
fn critical() -> bool
Whether the TLV is critical, see
tlv_critical
Source§impl TlvDecode for FreshnessPeriod
impl TlvDecode for FreshnessPeriod
Source§impl TlvEncode for FreshnessPeriod
impl TlvEncode for FreshnessPeriod
impl Eq for FreshnessPeriod
impl StructuralPartialEq for FreshnessPeriod
Auto Trait Implementations§
impl Freeze for FreshnessPeriod
impl RefUnwindSafe for FreshnessPeriod
impl Send for FreshnessPeriod
impl Sync for FreshnessPeriod
impl Unpin for FreshnessPeriod
impl UnwindSafe for FreshnessPeriod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more