Expand description
A crate that generlizes the API surface of std::io::Error by providing a type that wraps an error kind and a payload.
§Features
alloc: Adds support for interfaces that require an allocator. In particular, this adds error constructors that take arbitrary payloads.std: Adds support for interfaces that require the standard library (conversions to and fromstd::io::Errorand an implementingkind::ErrorKindforstd::io::ErrorKind).error-track_caller: Causes construction ofErrorto carry information about the location they were created. This is a debugging tool only - it does not add any API interfaces to the crate. Instead, the error simply holds the information internally, which is shown in thecore::fmt::Debugimpl.
Modules§
Structs§
- Error
- Primary Error type from this crate.
Errorcontains a kind and an optional payload, which may be an OS Error Code, a Custom Message, or (with an allocator available) a custom Error object.
Type Aliases§
- RawOs
Error - The raw type of an OS Error.
On most targets, this is
i32, but on other targets it may beisizeor another integer type