pub struct TimeSample {
pub utc: Option<i64>,
pub monotonic: Option<i64>,
pub standard_deviation: Option<i64>,
pub reference: Option<BootInstant>,
/* private fields */
}
Expand description
A correspondence pair that describes a UTC and the reference clock readings at the measurement instant.
Fields§
§utc: Option<i64>
The UTC time sample. The value of this instant is a value on the UTC timeline. However, the field is not type safe, as there is no UTC specific type on the zx level.
monotonic: Option<i64>
The monotonic time at which the sample was most valid. Must always be
provided.
DEPRECATED. Use reference
below instead.
standard_deviation: Option<i64>
The standard deviation representing the error distribution of the UTC measurement. Must always be provided.
reference: Option<BootInstant>
The timestamp on the reference timeline at which the sample was most valid. Must always be provided. The reference timeline is tracking the rate of change of proper time 1. So, for example, Fuchsia’s boot timeline will generate the appropriate reference instant.
Trait Implementations§
Source§impl Clone for TimeSample
impl Clone for TimeSample
Source§fn clone(&self) -> TimeSample
fn clone(&self) -> TimeSample
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TimeSample
impl Debug for TimeSample
Source§impl<D: ResourceDialect> Decode<TimeSample, D> for TimeSample
impl<D: ResourceDialect> Decode<TimeSample, D> for TimeSample
Source§impl Default for TimeSample
impl Default for TimeSample
Source§fn default() -> TimeSample
fn default() -> TimeSample
Source§impl<D: ResourceDialect> Encode<TimeSample, D> for &TimeSample
impl<D: ResourceDialect> Encode<TimeSample, D> for &TimeSample
Source§impl PartialEq for TimeSample
impl PartialEq for TimeSample
Source§impl TypeMarker for TimeSample
impl TypeMarker for TimeSample
Source§type Owned = TimeSample
type Owned = TimeSample
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 TimeSample
impl ValueTypeMarker for TimeSample
Source§type Borrowed<'a> = &'a TimeSample
type Borrowed<'a> = &'a TimeSample
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
§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
)