Skip to main content

Module error

Module error 

Source
Expand description

NsError: the one error type of the namespace layer.

No host path ever appears in an error. Not in Display, not in Debug, not in a source() chain (there is none). An error carries a NsErrorKind and, where it helps, the namespace path. The underlying OS error is reduced to its std::io::ErrorKind: the OS error text, and some libraries’ errors, can embed the host path, and a namespace’s whole job is that an app never learns where its tree lives on disk.

Structs§

NsError
An error from a namespace operation. See the module docs for what it will and will not contain.

Enums§

Feature
What a backend declared it cannot do. A closed set, like InputReason.
InputReason
Why an argument (not the path) was refused. A closed set of typed reasons, so an error can be carried over a wire and rebuilt on the far side without free text.
NsErrorKind
What went wrong, as a value a caller can match on.

Type Aliases§

NsResult
Shorthand used across the layer.