pub enum RequestError {
MissingParam {
name: String,
},
IncorrectParamType {
actual: RequestParamType,
expected: RequestParamType,
},
IntegerOverflow {
value: u128,
expected: String,
},
Json,
Binary,
TaggedBase64 {
reason: String,
},
UnsupportedContentType,
Http {
reason: String,
},
InvalidParam {
param_type: String,
reason: String,
},
TagMismatch {
actual: String,
expected: String,
},
}Variants§
MissingParam
IncorrectParamType
IntegerOverflow
Json
Binary
TaggedBase64
UnsupportedContentType
Http
InvalidParam
TagMismatch
Trait Implementations§
Source§impl Clone for RequestError
impl Clone for RequestError
Source§impl Debug for RequestError
impl Debug for RequestError
Source§impl<'de> Deserialize<'de> for RequestError
impl<'de> Deserialize<'de> for RequestError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RequestError
impl Display for RequestError
Source§impl Error for RequestError
impl Error for RequestError
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 RequestError
impl ErrorCompat for RequestError
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 From<RequestError> for ServerError
impl From<RequestError> for ServerError
Source§fn from(source: RequestError) -> Self
fn from(source: RequestError) -> Self
Converts to this type from the input type.
Source§impl<E> From<RequestError> for RouteError<E>
impl<E> From<RequestError> for RouteError<E>
Source§fn from(err: RequestError) -> Self
fn from(err: RequestError) -> Self
Converts to this type from the input type.
Source§impl<E> From<RequestError> for SocketError<E>
impl<E> From<RequestError> for SocketError<E>
Source§fn from(err: RequestError) -> Self
fn from(err: RequestError) -> Self
Converts to this type from the input type.
Source§impl<__T0> IntoError<RequestError> for MissingParamSnafu<__T0>
impl<__T0> IntoError<RequestError> for MissingParamSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> RequestError
fn into_error(self, error: Self::Source) -> RequestError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<RequestError> for IncorrectParamTypeSnafu<__T0, __T1>where
RequestError: Error + ErrorCompat,
__T0: Into<RequestParamType>,
__T1: Into<RequestParamType>,
impl<__T0, __T1> IntoError<RequestError> for IncorrectParamTypeSnafu<__T0, __T1>where
RequestError: Error + ErrorCompat,
__T0: Into<RequestParamType>,
__T1: Into<RequestParamType>,
Source§fn into_error(self, error: Self::Source) -> RequestError
fn into_error(self, error: Self::Source) -> RequestError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<RequestError> for IntegerOverflowSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<RequestError> for IntegerOverflowSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> RequestError
fn into_error(self, error: Self::Source) -> RequestError
Combine the information to produce the error
Source§impl IntoError<RequestError> for JsonSnafu
impl IntoError<RequestError> for JsonSnafu
Source§fn into_error(self, error: Self::Source) -> RequestError
fn into_error(self, error: Self::Source) -> RequestError
Combine the information to produce the error
Source§impl IntoError<RequestError> for BinarySnafu
impl IntoError<RequestError> for BinarySnafu
Source§fn into_error(self, error: Self::Source) -> RequestError
fn into_error(self, error: Self::Source) -> RequestError
Combine the information to produce the error
Source§impl<__T0> IntoError<RequestError> for TaggedBase64Snafu<__T0>
impl<__T0> IntoError<RequestError> for TaggedBase64Snafu<__T0>
Source§fn into_error(self, error: Self::Source) -> RequestError
fn into_error(self, error: Self::Source) -> RequestError
Combine the information to produce the error
Source§impl IntoError<RequestError> for UnsupportedContentTypeSnafu
impl IntoError<RequestError> for UnsupportedContentTypeSnafu
Source§fn into_error(self, error: Self::Source) -> RequestError
fn into_error(self, error: Self::Source) -> RequestError
Combine the information to produce the error
Source§impl<__T0> IntoError<RequestError> for HttpSnafu<__T0>
impl<__T0> IntoError<RequestError> for HttpSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> RequestError
fn into_error(self, error: Self::Source) -> RequestError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<RequestError> for InvalidParamSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<RequestError> for InvalidParamSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> RequestError
fn into_error(self, error: Self::Source) -> RequestError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<RequestError> for TagMismatchSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<RequestError> for TagMismatchSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> RequestError
fn into_error(self, error: Self::Source) -> RequestError
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for RequestError
impl RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl UnsafeUnpin for RequestError
impl UnwindSafe for RequestError
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