fidl

Type Alias 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