Enum bonsaidb::server::api::HandlerError
source · 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§
Trait Implementations§
source§impl<E> Debug for HandlerError<E>
impl<E> Debug for HandlerError<E>
source§impl<E> Display for HandlerError<E>
impl<E> Display for HandlerError<E>
source§impl<E> Error for HandlerError<E>
impl<E> Error for HandlerError<E>
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> From<Error> for HandlerError<E>where
E: ApiError,
impl<E> From<Error> for HandlerError<E>where
E: ApiError,
source§fn from(err: Error) -> HandlerError<E>
fn from(err: Error) -> HandlerError<E>
Converts to this type from the input type.
source§impl<E> From<Error> for HandlerError<E>where
E: ApiError,
impl<E> From<Error> for HandlerError<E>where
E: ApiError,
source§fn from(err: Error) -> HandlerError<E>
fn from(err: Error) -> HandlerError<E>
Converts to this type from the input type.
source§impl<E> From<Error> for HandlerError<E>where
E: ApiError,
impl<E> From<Error> for HandlerError<E>where
E: ApiError,
source§fn from(err: Error) -> HandlerError<E>
fn from(err: Error) -> HandlerError<E>
Converts to this type from the input type.
source§impl<E> From<Error> for HandlerError<E>where
E: ApiError,
impl<E> From<Error> for HandlerError<E>where
E: ApiError,
source§fn from(source: Error) -> HandlerError<E>
fn from(source: Error) -> HandlerError<E>
Converts to this type from the input type.
source§impl<E> From<Error> for HandlerError<E>where
E: ApiError,
impl<E> From<Error> for HandlerError<E>where
E: ApiError,
source§fn from(other: Error) -> HandlerError<E>
fn from(other: Error) -> HandlerError<E>
Converts to this type from the input type.
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§fn from(error: InsertError<T>) -> HandlerError<E>
fn from(error: InsertError<T>) -> HandlerError<E>
Converts to this type from the input type.
source§impl<E> From<InvalidNameError> for HandlerError<E>where
E: ApiError,
impl<E> From<InvalidNameError> for HandlerError<E>where
E: ApiError,
source§fn from(err: InvalidNameError) -> HandlerError<E>
fn from(err: InvalidNameError) -> HandlerError<E>
Converts to this type from the input type.
source§impl<E> From<PermissionDenied> for HandlerError<E>where
E: ApiError,
impl<E> From<PermissionDenied> for HandlerError<E>where
E: ApiError,
source§fn from(permission_denied: PermissionDenied) -> HandlerError<E>
fn from(permission_denied: PermissionDenied) -> HandlerError<E>
Converts to this type from the input type.
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