pub enum Failure {
Expired,
Denied,
Transport(TransportError),
Provider(String),
Malformed(&'static str),
}Expand description
How the flow ends when it is not a token.
Variants§
Expired
Denied
Transport(TransportError)
The request could not be made.
Provider(String)
The provider refused for another reason: its error code.
Malformed(&'static str)
The provider’s answer lacks what the flow needs (the name of what is missing).
Implementations§
Trait Implementations§
impl Eq for Failure
Source§impl Error for Failure
impl Error for Failure
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()
Source§impl From<TransportError> for Failure
impl From<TransportError> for Failure
Source§fn from(error: TransportError) -> Self
fn from(error: TransportError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Failure
Auto Trait Implementations§
impl Freeze for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failure
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