pub type BoxError = Box<dyn Error + Send + Sync>;Expand description
Any error a listener, query or middleware handler may return; ? converts most errors
into it, a Rejected too: return Err(Rejected::new("no such cart").code("not_found").into()).
A query or middleware handler that returns a Rejected (also one wrapped in
Error::Rejected, e.g. by a query it asked) refuses with its code; any other error
refuses with handler_error (middleware_error from a middleware). An event handler’s
error makes the listener reconnect and get the event again; a reactor parks it at once if
it is a Rejected, else after a few attempts (see crate::Listener::park_after).
Aliased Type§
pub struct BoxError(/* private fields */);