Enum bonsaidb::server::api::HandlerError [−][src]
pub enum HandlerError<E = Infallible> where
E: ApiError, {
Api(E),
Server(Error),
}
Expand description
An error that can occur inside of a Backend
function.
Variants
Api(E)
An api-related error.
Server(Error)
Tuple Fields
0: Error
A server-related error.
Trait Implementations
impl<E> Error for HandlerError<E> where
E: ApiError,
HandlerError<E>: Debug,
HandlerError<E>: Display,
impl<E> Error for HandlerError<E> where
E: ApiError,
HandlerError<E>: Debug,
HandlerError<E>: Display,
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<E = Infallible> !RefUnwindSafe for HandlerError<E>
impl<E> Send for HandlerError<E>
impl<E> Sync for HandlerError<E>
impl<E> Unpin for HandlerError<E> where
E: Unpin,
impl<E = Infallible> !UnwindSafe for HandlerError<E>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more