Struct fidl_fuchsia_time_external::TimeSample
source · pub struct TimeSample {
pub utc: Option<i64>,
pub monotonic: Option<i64>,
pub standard_deviation: Option<i64>,
/* private fields */
}
Expand description
A correspondence pair that describes a UTC time and the monotonic time at which the time was measured.
Fields§
§utc: Option<i64>
The UTC time sample. Must always be provided.
monotonic: Option<i64>
The monotonic time at which the sample was most valid. Must always be provided.
standard_deviation: Option<i64>
The standard deviation representing the error distribution of the UTC measurement. Must always be provided.
Trait Implementations§
source§impl Clone for TimeSample
impl Clone for TimeSample
source§fn clone(&self) -> TimeSample
fn clone(&self) -> TimeSample
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 TimeSample
impl Debug for TimeSample
source§impl Decode<TimeSample> for TimeSample
impl Decode<TimeSample> for TimeSample
source§impl Default for TimeSample
impl Default for TimeSample
source§fn default() -> TimeSample
fn default() -> TimeSample
Returns the “default value” for a type. Read more
source§impl Encode<TimeSample> for &TimeSample
impl Encode<TimeSample> for &TimeSample
source§impl PartialEq for TimeSample
impl PartialEq for TimeSample
source§fn eq(&self, other: &TimeSample) -> bool
fn eq(&self, other: &TimeSample) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for TimeSample
impl TypeMarker for TimeSample
§type Owned = TimeSample
type Owned = TimeSample
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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
Returns true if the memory layout of
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 TimeSample
impl ValueTypeMarker for TimeSample
§type Borrowed<'a> = &'a TimeSample
type Borrowed<'a> = &'a TimeSample
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for TimeSample
impl StructuralPartialEq for TimeSample
Auto Trait Implementations§
impl Freeze for TimeSample
impl RefUnwindSafe for TimeSample
impl Send for TimeSample
impl Sync for TimeSample
impl Unpin for TimeSample
impl UnwindSafe for TimeSample
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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