#[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<D: ResourceDialect> Decode<Lifetimes, D> for Lifetimes
impl<D: ResourceDialect> Decode<Lifetimes, D> for Lifetimes
Source§impl<D: ResourceDialect, T0: Encode<i64, D>, T1: Encode<i64, D>> Encode<Lifetimes, D> for (T0, T1)
impl<D: ResourceDialect, T0: Encode<i64, D>, T1: Encode<i64, D>> Encode<Lifetimes, D> for (T0, T1)
Source§impl Ord for Lifetimes
impl Ord for Lifetimes
Source§impl PartialOrd for Lifetimes
impl PartialOrd for Lifetimes
Source§impl TypeMarker for Lifetimes
impl TypeMarker 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 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 Lifetimes
impl ValueTypeMarker for Lifetimes
impl Copy for Lifetimes
impl Eq for Lifetimes
impl Persistable for Lifetimes
impl StructuralPartialEq for Lifetimes
Auto Trait Implementations§
impl Freeze for Lifetimes
impl RefUnwindSafe for Lifetimes
impl Send for Lifetimes
impl Sync for Lifetimes
impl Unpin for Lifetimes
impl UnwindSafe for Lifetimes
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
)