CountReader

Trait CountReader 

Source
pub trait CountReader {
    type ReadErr;
    type RawData;

    // Required method
    fn read() -> Result<Self::RawData, Self::ReadErr>;
}
Expand description

Used to interface directly with the source of a count. Typical implementation is to read directly from the relevant hardware register.

Required Associated Types§

Required Methods§

Source

fn read() -> Result<Self::RawData, Self::ReadErr>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§