Skip to main content

dope_core/platform/
mod.rs

1pub(crate) mod raw;
2pub mod snapshot;
3
4use std::io;
5
6use crate::io::file::RawMetadata;
7use snapshot::Snapshot;
8
9pub trait Platform {
10    type Sqe;
11    type Gso;
12    type StatBuf;
13    type TimerSpec;
14
15    fn entropy() -> io::Result<[u64; 2]>;
16    fn parse_meta(raw: &Self::StatBuf) -> io::Result<RawMetadata>;
17    fn snapshot() -> io::Result<Snapshot>;
18}