Skip to main content

Timer

Trait Timer 

Source
pub trait Timer: Sized {
    // Required methods
    fn try_new(deadline: Positive) -> Result<Self, Error>;
    fn try_refresh(&self) -> Result<(), Errno>;
    fn try_disarm(&self) -> Result<(), Errno>;
}
Expand description

Creation and operations on a live kernel deadline.

Required Methods§

Source

fn try_new(deadline: Positive) -> Result<Self, Error>

Source

fn try_refresh(&self) -> Result<(), Errno>

Source

fn try_disarm(&self) -> Result<(), Errno>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Timer for Infallible

Implementors§