pub enum ServiceFailureResetPeriod {
Never,
After(Duration),
}Expand description
A enum that represents the reset period for the failure counter.
Panics
Converting this to the FFI form will panic if the period is too large to fit as seconds in a
u32.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ServiceFailureResetPeriod
impl Clone for ServiceFailureResetPeriod
source§fn clone(&self) -> ServiceFailureResetPeriod
fn clone(&self) -> ServiceFailureResetPeriod
Returns a copy 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 ServiceFailureResetPeriod
impl Debug for ServiceFailureResetPeriod
source§impl Hash for ServiceFailureResetPeriod
impl Hash for ServiceFailureResetPeriod
source§impl PartialEq<ServiceFailureResetPeriod> for ServiceFailureResetPeriod
impl PartialEq<ServiceFailureResetPeriod> for ServiceFailureResetPeriod
source§fn eq(&self, other: &ServiceFailureResetPeriod) -> bool
fn eq(&self, other: &ServiceFailureResetPeriod) -> bool
This method tests for
self and other values to be equal, and is used
by ==.