#[non_exhaustive]pub enum HappyEyeballsError<T> {
Timeout(Duration),
NoProgress,
Error(T),
}Expand description
Error returned when the happy eyeballs algorithm finishes.
It contains the inner error if an underlying future errored (this will always be the first error)
Otherwsie, the enum indicates what went wrong.
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.
Timeout(Duration)
The timeout was reached.
NoProgress
No progress can be made.
Error(T)
An error occurred during the underlying future.
Trait Implementations§
Source§impl<T: Debug> Debug for HappyEyeballsError<T>
impl<T: Debug> Debug for HappyEyeballsError<T>
Source§impl<T> Display for HappyEyeballsError<T>where
T: Display,
impl<T> Display for HappyEyeballsError<T>where
T: Display,
Source§impl<T> Error for HappyEyeballsError<T>where
T: Error + 'static,
impl<T> Error for HappyEyeballsError<T>where
T: Error + 'static,
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<T: PartialEq> PartialEq for HappyEyeballsError<T>
impl<T: PartialEq> PartialEq for HappyEyeballsError<T>
impl<T: Eq> Eq for HappyEyeballsError<T>
impl<T> StructuralPartialEq for HappyEyeballsError<T>
Auto Trait Implementations§
impl<T> Freeze for HappyEyeballsError<T>where
T: Freeze,
impl<T> RefUnwindSafe for HappyEyeballsError<T>where
T: RefUnwindSafe,
impl<T> Send for HappyEyeballsError<T>where
T: Send,
impl<T> Sync for HappyEyeballsError<T>where
T: Sync,
impl<T> Unpin for HappyEyeballsError<T>where
T: Unpin,
impl<T> UnwindSafe for HappyEyeballsError<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