Skip to main content

Platform

Trait Platform 

Source
pub trait Platform {
    type Sqe;
    type Gso;
    type StatBuf;
    type TimerSpec;

    // Required methods
    fn entropy() -> Result<[u64; 2]>;
    fn parse_meta(raw: &Self::StatBuf) -> RawMetadata;
    fn snapshot() -> Result<Snapshot>;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§