Enum bonsaidb::server::BackendError
source · pub enum BackendError<E = Infallible> {
Backend(E),
Server(Error),
}
Expand description
An error that can occur inside of a Backend
function.
Variants§
Trait Implementations§
source§impl<E> Debug for BackendError<E>where
E: Debug,
impl<E> Debug for BackendError<E>where E: Debug,
source§impl<E> Display for BackendError<E>where
E: Display,
impl<E> Display for BackendError<E>where E: Display,
source§impl<E> Error for BackendError<E>where
BackendError<E>: Debug + Display,
impl<E> Error for BackendError<E>where BackendError<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 BackendError<E>
impl<E> From<Error> for BackendError<E>
source§fn from(err: Error) -> BackendError<E>
fn from(err: Error) -> BackendError<E>
Converts to this type from the input type.
source§impl<E> From<Error> for BackendError<E>
impl<E> From<Error> for BackendError<E>
source§fn from(other: Error) -> BackendError<E>
fn from(other: Error) -> BackendError<E>
Converts to this type from the input type.
source§impl<E> From<Error> for BackendError<E>
impl<E> From<Error> for BackendError<E>
source§fn from(err: Error) -> BackendError<E>
fn from(err: Error) -> BackendError<E>
Converts to this type from the input type.
source§impl<E> From<Error> for BackendError<E>
impl<E> From<Error> for BackendError<E>
source§fn from(source: Error) -> BackendError<E>
fn from(source: Error) -> BackendError<E>
Converts to this type from the input type.
source§impl<E> From<Error> for BackendError<E>
impl<E> From<Error> for BackendError<E>
source§fn from(err: Error) -> BackendError<E>
fn from(err: Error) -> BackendError<E>
Converts to this type from the input type.
source§impl<T, E> From<InsertError<T>> for BackendError<E>
impl<T, E> From<InsertError<T>> for BackendError<E>
source§fn from(error: InsertError<T>) -> BackendError<E>
fn from(error: InsertError<T>) -> BackendError<E>
Converts to this type from the input type.
source§impl<E> From<InvalidNameError> for BackendError<E>
impl<E> From<InvalidNameError> for BackendError<E>
source§fn from(err: InvalidNameError) -> BackendError<E>
fn from(err: InvalidNameError) -> BackendError<E>
Converts to this type from the input type.
source§impl<E> From<PermissionDenied> for BackendError<E>
impl<E> From<PermissionDenied> for BackendError<E>
source§fn from(permission_denied: PermissionDenied) -> BackendError<E>
fn from(permission_denied: PermissionDenied) -> BackendError<E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<E = Infallible> !RefUnwindSafe for BackendError<E>
impl<E> Send for BackendError<E>where E: Send,
impl<E> Sync for BackendError<E>where E: Sync,
impl<E> Unpin for BackendError<E>where E: Unpin,
impl<E = Infallible> !UnwindSafe for BackendError<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