Enum oas_core::couch::CouchError
source · [−]pub enum CouchError {
Http(Error),
Couch(StatusCode, ErrorDetails),
Json(Error),
IO(Error),
DecodingError(DecodingError),
Other(String),
MissingRefs(MissingRefsError),
ServiceUnavailable,
NotFound,
}
Variants
Http(Error)
Couch(StatusCode, ErrorDetails)
Json(Error)
IO(Error)
DecodingError(DecodingError)
Other(String)
MissingRefs(MissingRefsError)
ServiceUnavailable
NotFound
Implementations
sourceimpl CouchError
impl CouchError
pub fn status_code(&self) -> Option<u16>
Trait Implementations
sourceimpl Debug for CouchError
impl Debug for CouchError
sourceimpl Display for CouchError
impl Display for CouchError
sourceimpl Error for CouchError
impl Error for CouchError
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<CouchError> for RssError
impl From<CouchError> for RssError
sourcefn from(source: CouchError) -> Self
fn from(source: CouchError) -> Self
Converts to this type from the input type.
sourceimpl From<DecodingError> for CouchError
impl From<DecodingError> for CouchError
sourcefn from(source: DecodingError) -> Self
fn from(source: DecodingError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for CouchError
impl From<Error> for CouchError
sourceimpl From<Error> for CouchError
impl From<Error> for CouchError
sourceimpl From<Error> for CouchError
impl From<Error> for CouchError
sourceimpl From<MissingRefsError> for CouchError
impl From<MissingRefsError> for CouchError
sourcefn from(source: MissingRefsError) -> Self
fn from(source: MissingRefsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for CouchError
impl Send for CouchError
impl Sync for CouchError
impl Unpin for CouchError
impl !UnwindSafe for CouchError
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<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be
Self