lfs_core/stats/mod.rs
1#[cfg(unix)]
2mod unix;
3#[cfg(windows)]
4mod windows;
5
6#[cfg(unix)]
7pub use unix::*;
8#[cfg(windows)]
9pub use windows::*;
10
11#[derive(Debug, snafu::Snafu, Clone, Copy, PartialEq, Eq)]
12#[snafu(visibility(pub(crate)))]
13pub enum StatsError {
14 #[snafu(display("Could not stat mount point"))]
15 Unreachable,
16
17 #[snafu(display("Unconsistent stats"))]
18 Unconsistent,
19
20 /// Options made us not even try
21 #[snafu(display("Excluded"))]
22 Excluded,
23}