Enum bonsaidb_server::api::HandlerError
source · pub enum HandlerError<E: ApiError = Infallible> {
Api(E),
Server(Error),
}
Expand description
An error that can occur inside of a Backend
function.
Variants§
Trait Implementations§
source§impl<E: Debug + ApiError> Debug for HandlerError<E>
impl<E: Debug + ApiError> Debug for HandlerError<E>
source§impl<E> Display for HandlerError<E>where
E: Display + ApiError,
impl<E> Display for HandlerError<E>where E: Display + ApiError,
source§impl<E: ApiError> Error for HandlerError<E>where
Self: Debug + Display,
impl<E: ApiError> Error for HandlerError<E>where Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<E: ApiError> From<Error> for HandlerError<E>
impl<E: ApiError> From<Error> for HandlerError<E>
source§impl<E: ApiError> From<Error> for HandlerError<E>
impl<E: ApiError> From<Error> for HandlerError<E>
source§impl<E: ApiError> From<Error> for HandlerError<E>
impl<E: ApiError> From<Error> for HandlerError<E>
source§impl<E: ApiError> From<Error> for HandlerError<E>
impl<E: ApiError> From<Error> for HandlerError<E>
source§impl<E: ApiError> From<Error> for HandlerError<E>
impl<E: ApiError> From<Error> for HandlerError<E>
source§impl<T, E> From<InsertError<T>> for HandlerError<E>where
E: ApiError,
impl<T, E> From<InsertError<T>> for HandlerError<E>where E: ApiError,
source§impl<E: ApiError> From<InvalidNameError> for HandlerError<E>
impl<E: ApiError> From<InvalidNameError> for HandlerError<E>
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more