pub struct InterestLifetime { /* private fields */ }
Implementations§
Source§impl InterestLifetime
impl InterestLifetime
pub fn new(lifetime: NonNegativeInteger) -> InterestLifetime
Trait Implementations§
Source§impl AsMut<NonNegativeInteger> for InterestLifetime
impl AsMut<NonNegativeInteger> for InterestLifetime
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 InterestLifetime
impl AsRef<NonNegativeInteger> for InterestLifetime
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 InterestLifetime
impl Clone for InterestLifetime
Source§fn clone(&self) -> InterestLifetime
fn clone(&self) -> InterestLifetime
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 InterestLifetime
impl Debug for InterestLifetime
Source§impl From<InterestLifetime> for NonNegativeInteger
impl From<InterestLifetime> for NonNegativeInteger
Source§fn from(original: InterestLifetime) -> Self
fn from(original: InterestLifetime) -> Self
Converts to this type from the input type.
Source§impl From<NonNegativeInteger> for InterestLifetime
impl From<NonNegativeInteger> for InterestLifetime
Source§fn from(original: NonNegativeInteger) -> InterestLifetime
fn from(original: NonNegativeInteger) -> InterestLifetime
Converts to this type from the input type.
Source§impl Hash for InterestLifetime
impl Hash for InterestLifetime
Source§impl Ord for InterestLifetime
impl Ord for InterestLifetime
Source§fn cmp(&self, other: &InterestLifetime) -> Ordering
fn cmp(&self, other: &InterestLifetime) -> 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 InterestLifetime
impl PartialEq for InterestLifetime
Source§impl PartialOrd for InterestLifetime
impl PartialOrd for InterestLifetime
Source§impl Tlv for InterestLifetime
impl Tlv for InterestLifetime
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 InterestLifetime
impl TlvDecode for InterestLifetime
Source§impl TlvEncode for InterestLifetime
impl TlvEncode for InterestLifetime
impl Copy for InterestLifetime
impl Eq for InterestLifetime
impl StructuralPartialEq for InterestLifetime
Auto Trait Implementations§
impl Freeze for InterestLifetime
impl RefUnwindSafe for InterestLifetime
impl Send for InterestLifetime
impl Sync for InterestLifetime
impl Unpin for InterestLifetime
impl UnwindSafe for InterestLifetime
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