pub enum PreferredLifetimeInfo {
PreferredUntil(PositiveMonotonicInstant),
Deprecated,
}
Expand description
Information about the preferred lifetime of an IP address or delegated prefix.
Type-safe version of fnet_interfaces::PreferredLifetimeInfo
.
Variants§
PreferredUntil(PositiveMonotonicInstant)
Deprecated
Implementations§
Source§impl PreferredLifetimeInfo
impl PreferredLifetimeInfo
Sourcepub const fn preferred_forever() -> Self
pub const fn preferred_forever() -> Self
Returns a lifetime information for an address that is always preferred.
Sourcepub const fn to_fidl(self) -> PreferredLifetimeInfo
pub const fn to_fidl(self) -> PreferredLifetimeInfo
Converts to the equivalent FIDL type.
Trait Implementations§
Source§impl Clone for PreferredLifetimeInfo
impl Clone for PreferredLifetimeInfo
Source§fn clone(&self) -> PreferredLifetimeInfo
fn clone(&self) -> PreferredLifetimeInfo
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 PreferredLifetimeInfo
impl Debug for PreferredLifetimeInfo
Source§impl From<PreferredLifetimeInfo> for PreferredLifetimeInfo
impl From<PreferredLifetimeInfo> for PreferredLifetimeInfo
Source§fn from(value: PreferredLifetimeInfo) -> Self
fn from(value: PreferredLifetimeInfo) -> Self
Converts to this type from the input type.
Source§impl Hash for PreferredLifetimeInfo
impl Hash for PreferredLifetimeInfo
Source§impl Ord for PreferredLifetimeInfo
impl Ord for PreferredLifetimeInfo
Source§fn cmp(&self, other: &PreferredLifetimeInfo) -> Ordering
fn cmp(&self, other: &PreferredLifetimeInfo) -> 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 PreferredLifetimeInfo
impl PartialEq for PreferredLifetimeInfo
Source§impl PartialOrd for PreferredLifetimeInfo
impl PartialOrd for PreferredLifetimeInfo
Source§impl TryFrom<PreferredLifetimeInfo> for PreferredLifetimeInfo
impl TryFrom<PreferredLifetimeInfo> for PreferredLifetimeInfo
Source§type Error = NotPositiveMonotonicInstantError
type Error = NotPositiveMonotonicInstantError
The type returned in the event of a conversion error.
impl Copy for PreferredLifetimeInfo
impl Eq for PreferredLifetimeInfo
impl StructuralPartialEq for PreferredLifetimeInfo
Auto Trait Implementations§
impl Freeze for PreferredLifetimeInfo
impl RefUnwindSafe for PreferredLifetimeInfo
impl Send for PreferredLifetimeInfo
impl Sync for PreferredLifetimeInfo
impl Unpin for PreferredLifetimeInfo
impl UnwindSafe for PreferredLifetimeInfo
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)