pub enum NativeAuthInitError {
Discovery(DiscoveryError),
OAuthClient(String),
}Expand description
NativeAuthFlow::new failure surface.
Variants§
Discovery(DiscoveryError)
The authorization server’s discovery document could not be fetched or did not validate.
OAuthClient(String)
The HTTP client could not be constructed (TLS init, resource exhaustion).
Trait Implementations§
Source§impl Debug for NativeAuthInitError
impl Debug for NativeAuthInitError
Source§impl Display for NativeAuthInitError
impl Display for NativeAuthInitError
Source§impl Error for NativeAuthInitError
impl Error for NativeAuthInitError
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<DiscoveryError> for NativeAuthInitError
impl From<DiscoveryError> for NativeAuthInitError
Source§fn from(source: DiscoveryError) -> Self
fn from(source: DiscoveryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NativeAuthInitError
impl RefUnwindSafe for NativeAuthInitError
impl Send for NativeAuthInitError
impl Sync for NativeAuthInitError
impl Unpin for NativeAuthInitError
impl UnsafeUnpin for NativeAuthInitError
impl UnwindSafe for NativeAuthInitError
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