Type Definition grb::callback::CbResult [−][src]
type CbResult = Result<()>;
Expand description
The return type for callbacks, an alias of anyhow::Result
.
All callbacks, whether they are implemented as closures, functions or objects
should return this type. The anyhow::Error
type can be constructed from any
std::error::Error
, so you can use the ?
operator on any error inside a callback.