sel4_driver_interfaces::timer

Trait Timers

Source
pub trait Timers: Clock {
    type TimerLayout;
    type Timer;

    // Required methods
    fn timer_layout(&mut self) -> Result<Self::TimerLayout, Self::Error>;
    fn set_timeout_on(
        &mut self,
        timer: Self::Timer,
        relative: Duration,
    ) -> Result<(), Self::Error>;
    fn clear_timeout_on(
        &mut self,
        timer: Self::Timer,
    ) -> Result<(), Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn timer_layout(&mut self) -> Result<Self::TimerLayout, Self::Error>

Source

fn set_timeout_on( &mut self, timer: Self::Timer, relative: Duration, ) -> Result<(), Self::Error>

Source

fn clear_timeout_on(&mut self, timer: Self::Timer) -> Result<(), Self::Error>

Implementors§

Source§

impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: Timers> Timers for &WrappedMutex<T>

Source§

impl<T: Timer> Timers for SingleTimer<T>

Source§

impl<T: Timer> Timers for TrivialTimers<T>

Source§

impl<T: Deref<Target = RefCell<U>>, U: Timers> Timers for &WrappedRefCell<T>