Enum packet_formats_dhcp::v6::TimeValue
source · pub enum TimeValue {
Zero,
NonZero(NonZeroTimeValue),
}
Expand description
A representation of time values for lifetimes to relay the fact that certain values have special significance as described in RFC 8415, section 14.2 and section 7.7.
Variants§
Implementations§
Trait Implementations§
source§impl From<NonZeroTimeValue> for TimeValue
impl From<NonZeroTimeValue> for TimeValue
source§fn from(v: NonZeroTimeValue) -> TimeValue
fn from(v: NonZeroTimeValue) -> TimeValue
Converts to this type from the input type.
source§impl Ord for TimeValue
impl Ord for TimeValue
source§impl PartialEq for TimeValue
impl PartialEq for TimeValue
source§impl PartialOrd for TimeValue
impl PartialOrd for TimeValue
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TimeValue
impl Eq for TimeValue
impl StructuralPartialEq for TimeValue
Auto Trait Implementations§
impl Freeze for TimeValue
impl RefUnwindSafe for TimeValue
impl Send for TimeValue
impl Sync for TimeValue
impl Unpin for TimeValue
impl UnwindSafe for TimeValue
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