//! Error type for fallible sysfs operations.
use fmt;
use PathBuf;
/// Errors that can be surfaced by the sysfs backend.
///
/// Most enumeration is intentionally infallible: missing files yield empty
/// results because that's the natural sysfs idiom (the kernel may have
/// published or unpublished an attribute between two reads). [`Error`] is
/// reserved for cases where the configuration itself is wrong — e.g., a
/// caller pointed [`crate::Sysfs`] at a path that doesn't exist.
/// Result alias for [`Error`].
pub type Result<T> = Result;