pub enum AppError {
OptionNone {
location: Location,
},
Axum {
source: Error,
location: Location,
},
RequestProxy {
location: Location,
source: Error,
},
HttpRequestBuild {
location: Location,
source: Error,
},
UriFromParts {
location: Location,
source: InvalidUriParts,
},
RequestBodyRead {
location: Location,
source: Error,
},
BinaryCannotBeExecute {
location: Location,
filepath: String,
},
CommonIo {
location: Location,
source: Error,
},
}Variants§
OptionNone
Axum
RequestProxy
HttpRequestBuild
UriFromParts
RequestBodyRead
BinaryCannotBeExecute
CommonIo
Trait Implementations§
Source§impl Error for AppError
impl Error for AppError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for AppError
impl ErrorCompat for AppError
Source§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl<__T0> IntoError<AppError> for BinaryCannotBeExecuteSnafu<__T0>
impl<__T0> IntoError<AppError> for BinaryCannotBeExecuteSnafu<__T0>
Source§impl IntoError<AppError> for CommonIoSnafu
impl IntoError<AppError> for CommonIoSnafu
Source§impl IntoError<AppError> for HttpRequestBuildSnafu
impl IntoError<AppError> for HttpRequestBuildSnafu
Source§impl IntoError<AppError> for OptionNoneSnafu
impl IntoError<AppError> for OptionNoneSnafu
Source§impl IntoError<AppError> for RequestBodyReadSnafu
impl IntoError<AppError> for RequestBodyReadSnafu
Source§impl IntoError<AppError> for RequestProxySnafu
impl IntoError<AppError> for RequestProxySnafu
Source§impl IntoError<AppError> for UriFromPartsSnafu
impl IntoError<AppError> for UriFromPartsSnafu
Source§type Source = InvalidUriParts
type Source = InvalidUriParts
The underlying error
Source§fn into_error(self, error: Self::Source) -> AppError
fn into_error(self, error: Self::Source) -> AppError
Combine the information to produce the error
Source§impl IntoResponse for AppError
impl IntoResponse for AppError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for AppError
impl !RefUnwindSafe for AppError
impl Send for AppError
impl Sync for AppError
impl Unpin for AppError
impl !UnwindSafe for AppError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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> 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.