pub struct InternalFailureException;Expand description
A protocol-agnostic type representing an internal framework error. As of writing, this can only
occur upon failure to extract an crate::extension::Extension from the request.
This type is converted into protocol-specific error variants. For example, in the
[crate::protocol::rest_json_1] protocol, it is converted to the
[crate::protocol::rest_json_1::runtime_error::RuntimeError::InternalFailure] variant.
Its response conversions support concrete protocol markers and tuples of two through ten
protocols. Use [IntoResponse::into_response_with_protocol] to frame the
response; a direct tuple conversion returns the shared RuntimeError’s empty 500 fallback.
Trait Implementations§
Source§impl From<InternalFailureException> for RuntimeError
impl From<InternalFailureException> for RuntimeError
Source§fn from(_: InternalFailureException) -> Self
fn from(_: InternalFailureException) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InternalFailureException
impl RefUnwindSafe for InternalFailureException
impl Send for InternalFailureException
impl Sync for InternalFailureException
impl Unpin for InternalFailureException
impl UnsafeUnpin for InternalFailureException
impl UnwindSafe for InternalFailureException
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.