Skip to main content

store_io_core/
lib.rs

1//! # store-io-core
2//!
3//! The vocabulary every store-io crate shares: identities ([`id`]), durability
4//! classes and receipt labels ([`class`]), the error model ([`error`]) and the
5//! classification of raw OS errors ([`errno`]), the evidence a platform reports
6//! about a device ([`evidence`]), and the pure rules that turn evidence into a
7//! durability class ([`decide`]) and an untorn-write unit ([`untorn`]).
8//!
9//! Nothing here performs I/O or allocates on a hot path. Every decision rule is
10//! a pure function tested by a table, so the same decision can be reproduced
11//! from a printed device report.
12
13#![deny(warnings)]
14#![forbid(unsafe_code)]
15
16pub mod align;
17pub mod class;
18pub mod decide;
19pub mod errno;
20pub mod error;
21pub mod evidence;
22pub mod id;
23pub mod observe;
24pub mod set;
25pub mod untorn;
26
27pub use class::{DurabilityClass, ReceiptLabel};
28pub use error::{Error, Result};
29pub use id::{Generation, RegionId, VolumeId};