pub enum SendWithRefreshError<E> {
Transport(HttpError),
Refresh(E),
}Expand description
What a send_with_refresh call can end as. The replay’s own outcome —
whatever status the provider answered it with — is a success here: a 401
on the replay is data for the caller’s token layer, not this helper’s
error to name.
Variants§
Transport(HttpError)
The transport refused a send (either one).
Refresh(E)
The refresh did not produce a token, so there was no replay. The caller’s own refresh error is carried untouched.
Trait Implementations§
Source§impl<E: Debug> Debug for SendWithRefreshError<E>
impl<E: Debug> Debug for SendWithRefreshError<E>
Source§impl<E> Display for SendWithRefreshError<E>
impl<E> Display for SendWithRefreshError<E>
Source§impl<E> Error for SendWithRefreshError<E>
impl<E> Error for SendWithRefreshError<E>
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<E> Freeze for SendWithRefreshError<E>where
E: Freeze,
impl<E> RefUnwindSafe for SendWithRefreshError<E>where
E: RefUnwindSafe,
impl<E> Send for SendWithRefreshError<E>where
E: Send,
impl<E> Sync for SendWithRefreshError<E>where
E: Sync,
impl<E> Unpin for SendWithRefreshError<E>where
E: Unpin,
impl<E> UnsafeUnpin for SendWithRefreshError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for SendWithRefreshError<E>where
E: 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