Type Alias fidl::Ticks

source ·
pub type Ticks<T> = Instant<T, TicksUnit>;
Expand description

A timestamp from system ticks. Has an arbitrary unit that can be measured with Ticks::per_second().

Aliased Type§

struct Ticks<T>(/* private fields */);

Trait Implementations§

source§

impl<T: Timeline + 'static, D: ResourceDialect> Decode<Instant<T, TicksUnit>, D> for Ticks<T>

source§

fn new_empty() -> Self

Creates a valid instance of Self. The specific value does not matter, since it will be overwritten by decode.
source§

unsafe fn decode( &mut self, decoder: &mut Decoder<'_, D>, offset: usize, _depth: Depth, ) -> Result<()>

Decodes an object of type T from the decoder’s buffers into self. Read more
source§

impl<T: Timeline + 'static, D: ResourceDialect> Encode<Instant<T, TicksUnit>, D> for Ticks<T>

source§

unsafe fn encode( self, encoder: &mut Encoder<'_, D>, offset: usize, _depth: Depth, ) -> Result<()>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more