pub enum AppError {
DecodingError(DecodingError),
EncodingError(EncodingError),
Couch(CouchError),
Serde(Error),
Other(String),
Elastic(Error),
Http(Status, String),
ValidationError(ValidationError),
Unauthorized,
}
Variants
DecodingError(DecodingError)
EncodingError(EncodingError)
Couch(CouchError)
Serde(Error)
Other(String)
Elastic(Error)
Http(Status, String)
ValidationError(ValidationError)
Unauthorized
Trait Implementations
sourceimpl Error for AppError
impl Error for AppError
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()
sourceimpl From<CouchError> for AppError
impl From<CouchError> for AppError
sourcefn from(source: CouchError) -> Self
fn from(source: CouchError) -> Self
Converts to this type from the input type.
sourceimpl From<DecodingError> for AppError
impl From<DecodingError> for AppError
sourcefn from(source: DecodingError) -> Self
fn from(source: DecodingError) -> Self
Converts to this type from the input type.
sourceimpl From<EncodingError> for AppError
impl From<EncodingError> for AppError
sourcefn from(source: EncodingError) -> Self
fn from(source: EncodingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for AppError
impl Send for AppError
impl Sync for AppError
impl Unpin for AppError
impl !UnwindSafe for AppError
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.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<'a, 'r, T> OpenApiResponder<'a, 'r> for Twhere
'r: 'a,
T: OpenApiResponderInner + Responder<'a, 'r>,
impl<'a, 'r, T> OpenApiResponder<'a, 'r> for Twhere
'r: 'a,
T: OpenApiResponderInner + Responder<'a, 'r>,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be
Self