pub struct TimestampNameComponent {
pub time: NonNegativeInteger,
}
Fields§
§time: NonNegativeInteger
Implementations§
Source§impl TimestampNameComponent
impl TimestampNameComponent
pub fn new(time: NonNegativeInteger) -> Self
pub fn now() -> Self
Trait Implementations§
Source§impl AsMut<NonNegativeInteger> for TimestampNameComponent
impl AsMut<NonNegativeInteger> for TimestampNameComponent
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 TimestampNameComponent
impl AsRef<NonNegativeInteger> for TimestampNameComponent
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 TimestampNameComponent
impl Clone for TimestampNameComponent
Source§fn clone(&self) -> TimestampNameComponent
fn clone(&self) -> TimestampNameComponent
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 TimestampNameComponent
impl Debug for TimestampNameComponent
Source§impl Default for TimestampNameComponent
impl Default for TimestampNameComponent
Source§impl Display for TimestampNameComponent
impl Display for TimestampNameComponent
Source§impl From<NonNegativeInteger> for TimestampNameComponent
impl From<NonNegativeInteger> for TimestampNameComponent
Source§fn from(original: NonNegativeInteger) -> TimestampNameComponent
fn from(original: NonNegativeInteger) -> TimestampNameComponent
Converts to this type from the input type.
Source§impl From<TimestampNameComponent> for NameComponent
impl From<TimestampNameComponent> for NameComponent
Source§fn from(original: TimestampNameComponent) -> NameComponent
fn from(original: TimestampNameComponent) -> NameComponent
Converts to this type from the input type.
Source§impl From<TimestampNameComponent> for NonNegativeInteger
impl From<TimestampNameComponent> for NonNegativeInteger
Source§fn from(original: TimestampNameComponent) -> Self
fn from(original: TimestampNameComponent) -> Self
Converts to this type from the input type.
Source§impl From<u64> for TimestampNameComponent
impl From<u64> for TimestampNameComponent
Source§impl From<usize> for TimestampNameComponent
impl From<usize> for TimestampNameComponent
Source§impl Hash for TimestampNameComponent
impl Hash for TimestampNameComponent
Source§impl Ord for TimestampNameComponent
impl Ord for TimestampNameComponent
Source§fn cmp(&self, other: &TimestampNameComponent) -> Ordering
fn cmp(&self, other: &TimestampNameComponent) -> 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 TimestampNameComponent
impl PartialEq for TimestampNameComponent
Source§impl PartialOrd for TimestampNameComponent
impl PartialOrd for TimestampNameComponent
Source§impl Tlv for TimestampNameComponent
impl Tlv for TimestampNameComponent
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 TimestampNameComponent
impl TlvDecode for TimestampNameComponent
Source§impl TlvEncode for TimestampNameComponent
impl TlvEncode for TimestampNameComponent
impl Eq for TimestampNameComponent
impl StructuralPartialEq for TimestampNameComponent
Auto Trait Implementations§
impl Freeze for TimestampNameComponent
impl RefUnwindSafe for TimestampNameComponent
impl Send for TimestampNameComponent
impl Sync for TimestampNameComponent
impl Unpin for TimestampNameComponent
impl UnwindSafe for TimestampNameComponent
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