Enum elfo_core::errors::RequestError
source · pub enum RequestError<T> {
Ignored,
Closed(T),
}
Variants§
Implementations§
source§impl<T> RequestError<T>
impl<T> RequestError<T>
sourcepub fn into_inner(self) -> Option<T>
pub fn into_inner(self) -> Option<T>
Converts the error into its inner value.
sourcepub fn map<U>(self, f: impl FnOnce(T) -> U) -> RequestError<U>
pub fn map<U>(self, f: impl FnOnce(T) -> U) -> RequestError<U>
Transforms the inner message.
sourcepub fn is_ignored(&self) -> bool
pub fn is_ignored(&self) -> bool
Returns whether the error is the Full
variant.
Trait Implementations§
source§impl<T: Debug> Debug for RequestError<T>
impl<T: Debug> Debug for RequestError<T>
source§impl<T> Display for RequestError<T>
impl<T> Display for RequestError<T>
source§impl<T> Error for RequestError<T>where
RequestError<T>: Debug + Display,
impl<T> Error for RequestError<T>where RequestError<T>: Debug + Display,
1.30.0 · 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()