pub enum ErrorPropagation {
None,
IoOperations,
All,
}Expand description
Determines the return type of the callsites when the Resolver returns false (indicating a
retry should not be attempted).
Variants§
None
No error will be produced
IoOperations
The latest error will be propagated only if it stemmed from an underlying I/O error, but not if it occurred as a result of previous failures to reconnect.
All
The latest error will be returned
Trait Implementations§
Source§impl Clone for ErrorPropagation
impl Clone for ErrorPropagation
Source§fn clone(&self) -> ErrorPropagation
fn clone(&self) -> ErrorPropagation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorPropagation
impl Debug for ErrorPropagation
Source§impl Hash for ErrorPropagation
impl Hash for ErrorPropagation
Source§impl Ord for ErrorPropagation
impl Ord for ErrorPropagation
Source§fn cmp(&self, other: &ErrorPropagation) -> Ordering
fn cmp(&self, other: &ErrorPropagation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ErrorPropagation
impl PartialEq for ErrorPropagation
Source§impl PartialOrd for ErrorPropagation
impl PartialOrd for ErrorPropagation
impl Copy for ErrorPropagation
impl Eq for ErrorPropagation
impl StructuralPartialEq for ErrorPropagation
Auto Trait Implementations§
impl Freeze for ErrorPropagation
impl RefUnwindSafe for ErrorPropagation
impl Send for ErrorPropagation
impl Sync for ErrorPropagation
impl Unpin for ErrorPropagation
impl UnwindSafe for ErrorPropagation
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