Enum sea_orm_rocket::Error
source · pub enum Error<A, B = A> {
Init(A),
Get(B),
Config(Error),
}
Expand description
A general error type for use by Pool
implementors and returned by the Connection
request
guard.
Variants
Init(A)
An error that occured during database/pool initialization.
Get(B)
An error that ocurred while retrieving a connection from the pool.
Config(Error)
A Figment
configuration error.
Trait Implementations
sourceimpl<A, B> Error for Error<A, B>where
A: Debug + Display,
B: Debug + Display,
impl<A, B> Error for Error<A, B>where
A: Debug + Display,
B: Debug + Display,
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl<A, B = A> !RefUnwindSafe for Error<A, B>
impl<A, B> Send for Error<A, B>where
A: Send,
B: Send,
impl<A, B> Sync for Error<A, B>where
A: Sync,
B: Sync,
impl<A, B> Unpin for Error<A, B>where
A: Unpin,
B: Unpin,
impl<A, B = A> !UnwindSafe for Error<A, B>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.