sel4_driver_interfaces::timer

Trait Timer

Source
pub trait Timer: Clock {
    // Required methods
    fn set_timeout(&mut self, relative: Duration) -> Result<(), Self::Error>;
    fn clear_timeout(&mut self) -> Result<(), Self::Error>;
}

Required Methods§

Source

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

Source

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

Implementors§

Source§

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

Source§

impl<T: Timers<Timer: Default>> Timer for DefaultTimer<T>

Source§

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