pub enum FailureClass {
Success,
Retryable,
Permanent,
Ignored,
}Expand description
Coarse classification of an outcome (used by the circuit breaker).
Variants§
Trait Implementations§
Source§impl Clone for FailureClass
impl Clone for FailureClass
Source§fn clone(&self) -> FailureClass
fn clone(&self) -> FailureClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FailureClass
Source§impl Debug for FailureClass
impl Debug for FailureClass
impl Eq for FailureClass
Source§impl PartialEq for FailureClass
impl PartialEq for FailureClass
Source§fn eq(&self, other: &FailureClass) -> bool
fn eq(&self, other: &FailureClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FailureClass
Auto Trait Implementations§
impl Freeze for FailureClass
impl RefUnwindSafe for FailureClass
impl Send for FailureClass
impl Sync for FailureClass
impl Unpin for FailureClass
impl UnsafeUnpin for FailureClass
impl UnwindSafe for FailureClass
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