Struct r3::kernel::TimerRef

source ·
pub struct TimerRef<'a, System>(_, _)
where
    System: KernelTimer
;
Expand description

Represents a single borrowed timer in a system.

This type is ABI-compatible with System::RawTimerId. It’s logically equivalent to &'a Timer but instead stores RawTimerId directly.

See Timer for the owned counterpart and the description of this kernel object. See TimerMethods for the operations provided by this handle type.

Implementations

Construct a TimerDefiner to define a timer in a configuration function.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
The system type this object pertains to.
Construct a Timer from RawTimerId. Read more
Get the raw RawTimerId value representing this object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Start the timer (transition it into the Active state). Read more
Stop the timer (transition it into the Dormant state). Read more
Set the duration before the next tick. Read more
Set the timer period, which is a quantity to be added to the timer’s absolute arrival time on every tick. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.