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>
impl<T> Error for RequestError<T>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<T> Freeze for RequestError<T>where
T: Freeze,
impl<T> RefUnwindSafe for RequestError<T>where
T: RefUnwindSafe,
impl<T> Send for RequestError<T>where
T: Send,
impl<T> Sync for RequestError<T>where
T: Sync,
impl<T> Unpin for RequestError<T>where
T: Unpin,
impl<T> UnwindSafe for RequestError<T>where
T: 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