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> Error for HandlerError<E>where
E: ApiError,
HandlerError<E>: Debug + Display,
impl<E> Error for HandlerError<E>where
E: ApiError,
HandlerError<E>: 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> 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<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<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.