pub enum PreferredLifetimeInfo {
PreferredUntil(i64),
Deprecated(Empty),
}
Expand description
Information about the preferred lifetime of an IP address or delegated prefix.
Variants§
PreferredUntil(i64)
The end of the preferred lifetime.
The address/prefix should not be considered deprecated if zx.Time
is in the past. preferred_until
is exchanged as a means to inform
the deadline where deprecation is expected to happen.
The preferred lifetime of addresses is defined in RFC 4862, section 2.
Addresses configured using a delegated prefix must have a preferred lifetime no longer than that of the prefix according to RFC 8415, section 6.3.
Must be greater than 0. If zx.Time.INFINITE
, the preferred lifetime
does not expire.
Deprecated(Empty)
The address/prefix is deprecated.
Deprecated addresses should no longer be used for initiating new connections unless explicitly requested, or if no other non-deprecated addresses are assigned (as described in RFC 4862, section 1).
Addresses configured using a deprecated delegated prefix must also be deprecated according to RFC 8415, section 6.3.
An address/prefix can become undeprecated if its preferred lifetime is extended.
Implementations§
Trait Implementations§
Source§impl Clone for PreferredLifetimeInfo
impl Clone for PreferredLifetimeInfo
Source§fn clone(&self) -> PreferredLifetimeInfo
fn clone(&self) -> PreferredLifetimeInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PreferredLifetimeInfo
impl Debug for PreferredLifetimeInfo
Source§impl<D: ResourceDialect> Decode<PreferredLifetimeInfo, D> for PreferredLifetimeInfo
impl<D: ResourceDialect> Decode<PreferredLifetimeInfo, D> for PreferredLifetimeInfo
Source§impl<D: ResourceDialect> Encode<PreferredLifetimeInfo, D> for &PreferredLifetimeInfo
impl<D: ResourceDialect> Encode<PreferredLifetimeInfo, D> for &PreferredLifetimeInfo
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,
Source§impl PartialEq for PreferredLifetimeInfo
impl PartialEq for PreferredLifetimeInfo
Source§impl PartialOrd for PreferredLifetimeInfo
impl PartialOrd for PreferredLifetimeInfo
Source§impl TypeMarker for PreferredLifetimeInfo
impl TypeMarker for PreferredLifetimeInfo
Source§type Owned = PreferredLifetimeInfo
type Owned = PreferredLifetimeInfo
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for PreferredLifetimeInfo
impl ValueTypeMarker for PreferredLifetimeInfo
Source§type Borrowed<'a> = &'a PreferredLifetimeInfo
type Borrowed<'a> = &'a PreferredLifetimeInfo
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for PreferredLifetimeInfo
impl Eq for PreferredLifetimeInfo
impl Persistable 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§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
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)
clone_to_uninit
)