Enum mas_http::catch_http_codes::Error
source · pub enum Error<S, E> {
Service {
inner: S,
},
HttpError {
status_code: StatusCode,
inner: E,
},
}
Variants§
Implementations§
source§impl<S, E> Error<S, E>
impl<S, E> Error<S, E>
pub fn status_code(&self) -> Option<StatusCode>
Trait Implementations§
source§impl<S, E> Error for Error<S, E>
impl<S, E> Error for Error<S, E>
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()
Auto Trait Implementations§
impl<S, E> Freeze for Error<S, E>
impl<S, E> RefUnwindSafe for Error<S, E>where
S: RefUnwindSafe,
E: RefUnwindSafe,
impl<S, E> Send for Error<S, E>
impl<S, E> Sync for Error<S, E>
impl<S, E> Unpin for Error<S, E>
impl<S, E> UnwindSafe for Error<S, E>where
S: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
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
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.