Struct fidl_fuchsia_net_dhcpv6::Lifetimes
source · #[repr(C)]pub struct Lifetimes {
pub valid_until: i64,
pub preferred_until: i64,
}
Fields§
§valid_until: i64
The time after which the prefix will no longer be valid.
Its value must be greater than 0. A value of
ZX_TIME_INFINITE
indicates that the prefix will always
be valid. If the value indicates a time in the past,
the prefix is invalid and should not be used.
As a zx.time
, the value has
monotonic clock semantics, which implies
that it has no meaning outside of the host on which it
was generated and no meaning across host restarts.
preferred_until: i64
The time after which the prefix will no longer be preferred.
Its value must be greater than 0. A value of
ZX_TIME_INFINITE
indicates that the prefix will always
be preferred. If the value indicates a time in the past,
the prefix should be considered deprecated. The value must not
refer to a time after [valid_until
].
As a zx.time
, the value has
monotonic clock semantics,
which implies that it has no meaning outside of the host on
which it was generated and no meaning across host restarts.
Trait Implementations§
source§impl AsBytes for Lifetimeswhere
i64: AsBytes,
HasPadding<Lifetimes, { _ }>: ShouldBe<{ _ }>,
impl AsBytes for Lifetimeswhere i64: AsBytes, HasPadding<Lifetimes, { _ }>: ShouldBe<{ _ }>,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere Self: FromBytes,
§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
source§impl Autonull for Lifetimes
impl Autonull for Lifetimes
source§fn naturally_nullable(_context: &Context) -> bool
fn naturally_nullable(_context: &Context) -> bool
source§impl Decodable for Lifetimes
impl Decodable for Lifetimes
source§fn decode(&mut self, decoder: &mut Decoder<'_>, offset: usize) -> Result<()>
fn decode(&mut self, decoder: &mut Decoder<'_>, offset: usize) -> Result<()>
self
.
Callers must ensure that offset
is a multiple of
Layout::inline_align
, and that decoder.buf
has room for reading
Layout::inline_size
bytes at offset
. Read moresource§impl Encodable for Lifetimes
impl Encodable for Lifetimes
source§fn encode(
&mut self,
encoder: &mut Encoder<'_, '_>,
offset: usize,
_recursion_depth: usize
) -> Result<()>
fn encode( &mut self, encoder: &mut Encoder<'_, '_>, offset: usize, _recursion_depth: usize ) -> Result<()>
Handle::INVALID
. Callers must ensure that offset
is a
multiple of Layout::inline_align
, and that encoder.buf
has room for
writing Layout::inline_size
bytes at offset
. Read moresource§impl FromBytes for Lifetimeswhere
i64: FromBytes,
impl FromBytes for Lifetimeswhere i64: FromBytes,
§fn read_from_prefix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_prefix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn read_from_suffix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_suffix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere Self: Sized,
Self
from zeroed bytes.source§impl Layout for Lifetimes
impl Layout for Lifetimes
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 supports_simple_copy() -> bool
fn supports_simple_copy() -> bool
source§impl Ord for Lifetimes
impl Ord for Lifetimes
source§impl PartialEq<Lifetimes> for Lifetimes
impl PartialEq<Lifetimes> for Lifetimes
source§impl PartialOrd<Lifetimes> for Lifetimes
impl PartialOrd<Lifetimes> for Lifetimes
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Lifetimes
impl Eq for Lifetimes
impl Persistable for Lifetimes
impl StructuralEq for Lifetimes
impl StructuralPartialEq for Lifetimes
impl TopLevel for Lifetimes
Auto Trait Implementations§
impl RefUnwindSafe for Lifetimes
impl Send for Lifetimes
impl Sync for Lifetimes
impl Unpin for Lifetimes
impl UnwindSafe for Lifetimes
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutObject for Twhere
T: Layout,
impl<T> LayoutObject for Twhere T: Layout,
§fn inline_align(&self, context: &Context) -> usize
fn inline_align(&self, context: &Context) -> usize
Layout::inline_align
.§fn inline_size(&self, context: &Context) -> usize
fn inline_size(&self, context: &Context) -> usize
Layout::inline_size
.