Expand description
Traits for working with Errors.
§Usage
If you’re a library, you should reexport all the features exposed by this crate.
Structs§
- Report
Experimental An error reporter that prints an error and its sources. - Request
Experimental Request
supports generic, type-driven access to data. Its use is currently restricted to the standard library in cases where trait authors wish to allow trait implementors to share generic information across trait boundaries. The motivating and prototypical use case iscore::error::Error
which would otherwise require a method per concrete type (eg.std::backtrace::Backtrace
instance that implementors want to expose to users).
Traits§
Error
is a trait representing the basic expectations for error values, i.e., values of typeE
inResult<T, E>
.
Functions§
- request_
ref Experimental Requests a reference of typeT
from the givenimpl Error
. - request_
value Experimental Requests a value of typeT
from the givenimpl Error
.