#[non_exhaustive]pub enum AuthError {
Io {
source: Error,
operation: IoOperation,
},
Timeout {
elapsed: Duration,
phase: AuthPhase,
},
Parse(DPlusError),
}Expand description
DPlus TCP auth errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io
I/O failure during connect, write, or read. The operation
field identifies which phase tripped.
Fields
§
operation: IoOperationWhich phase of the auth flow failed.
Timeout
Phase timed out — the configured AuthClient::with_connect_timeout
or AuthClient::with_read_timeout elapsed before the
operation completed.
Fields
Parse(DPlusError)
Response body failed to parse as a valid DPlus host list.
Trait Implementations§
Source§impl Error for AuthError
impl Error for AuthError
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 Freeze for AuthError
impl !RefUnwindSafe for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl !UnwindSafe for AuthError
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