//! Error types returned by [`crate::EkvFs`] and [`crate::EkvFile`].
/// Errors that can occur when using the virtual file system.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]pubenumError{/// The path exceeds [`crate::EkvFs`]’s `MAX_PATH_LEN` const generic.
PathTooLong,/// A storage key could not be formatted (path too long for key buffer).
KeyTooLong,/// No file exists at the given path.
NotFound,/// The underlying `ekv` database returned an error.
Database,/// Metadata could not be encoded or decoded.
Serialize,}implError{pub(crate)fnfrom_db<E>(_: E)->Self{Self::Database
}}