FdTimerRead

Trait FdTimerRead 

Source
pub trait FdTimerRead:
    AsFd
    + AsRawFd
    + Display
    + AsRef<str>
    + PartialEq<str>
    + PartialEq<RawFd> {
    // Required method
    fn read(&self) -> TimerPortResult<TimerReadRes<u64>>;
}
Expand description

A super trait which is used on timers for executing the reading code of the timer.

§Traits

Required Methods§

Source

fn read(&self) -> TimerPortResult<TimerReadRes<u64>>

Attempts to read the timer. The realization is different on different OS. The main purpose is to check if timer is ready (ended).

§Returns

Implementors§