Skip to main content

Module error

Module error 

Source
Expand description

Error taxonomy for the crate::tree walker.

Errors carry PathBuf and String detail fields rather than boxing underlying loader or parser errors. Keeping leaky types out of the public surface means adding a new loader backend (IPC, in-memory, http) in a future slice stays non-breaking.

Enums§

DirtyTreeRefusalKind
Discriminator for TreeError::DirtyTreeRefusal. Each kind has its own operator-facing Display string; consult the variant docs for the exact wording.
TreeError
Errors raised during a pack-tree walk.

Functions§

is_not_a_directory
MSRV-safe ENOTDIR detection. io::ErrorKind::NotADirectory stabilised in Rust 1.83 but the workspace MSRV is pinned at 1.79. Detect via the raw OS error code instead: POSIX ENOTDIR = 20, Windows ERROR_DIRECTORY = 267.