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> Decode<PreferredLifetimeInfo, D> for PreferredLifetimeInfowhere
    D: ResourceDialect,
 
impl<D> Decode<PreferredLifetimeInfo, D> for PreferredLifetimeInfowhere
    D: ResourceDialect,
Source§fn new_empty() -> PreferredLifetimeInfo
 
fn new_empty() -> PreferredLifetimeInfo
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<PreferredLifetimeInfo, D> for &PreferredLifetimeInfowhere
    D: ResourceDialect,
 
impl<D> Encode<PreferredLifetimeInfo, D> for &PreferredLifetimeInfowhere
    D: ResourceDialect,
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.Source§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 moreSource§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 moreSource§fn borrow(
    value: &<PreferredLifetimeInfo as TypeMarker>::Owned,
) -> <PreferredLifetimeInfo as ValueTypeMarker>::Borrowed<'_>
 
fn borrow( value: &<PreferredLifetimeInfo as TypeMarker>::Owned, ) -> <PreferredLifetimeInfo as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.