[−][src]Struct kernel::VirtualSchedulerTimer
Implementation of SchedulerTimer trait on top of a virtual alarm.
Currently, this implementation depends slightly on the virtual alarm implementation in capsules -- namely it assumes that get_alarm will still return the passed value even after the timer is disarmed. Thus this should only be implemented with a virtual alarm. If a dedicated hardware timer is available, it is more performant to implement the scheduler timer directly for that hardware peripheral without the alarm abstraction in between.
This mostly handles conversions from wall time, the required inputs to the trait, to ticks, which are used to track time for alarms.
Implementations
impl<A: 'static + Alarm<'static>> VirtualSchedulerTimer<A>
[src]
Trait Implementations
impl<A: 'static + Alarm<'static>> AlarmClient for VirtualSchedulerTimer<A>
[src]
impl<A: 'static + Alarm<'static>> SchedulerTimer for VirtualSchedulerTimer<A>
[src]
Auto Trait Implementations
impl<A> Send for VirtualSchedulerTimer<A> where
A: Sync,
[src]
A: Sync,
impl<A> Sync for VirtualSchedulerTimer<A> where
A: Sync,
[src]
A: Sync,
impl<A> Unpin for VirtualSchedulerTimer<A>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,