pub struct BreakerStatus {
pub state: BreakerState,
pub failures: u32,
pub opened_at_ms: Option<u64>,
}Expand description
BreakerStatus data container.
Fields§
§state: BreakerStatestate field for state.
failures: u32failures field for failures.
opened_at_ms: Option<u64>opened_at_ms field for opened at ms.
Trait Implementations§
Source§impl Clone for BreakerStatus
impl Clone for BreakerStatus
Source§fn clone(&self) -> BreakerStatus
fn clone(&self) -> BreakerStatus
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 BreakerStatus
impl Debug for BreakerStatus
Source§impl PartialEq for BreakerStatus
impl PartialEq for BreakerStatus
impl Eq for BreakerStatus
impl StructuralPartialEq for BreakerStatus
Auto Trait Implementations§
impl Freeze for BreakerStatus
impl RefUnwindSafe for BreakerStatus
impl Send for BreakerStatus
impl Sync for BreakerStatus
impl Unpin for BreakerStatus
impl UnsafeUnpin for BreakerStatus
impl UnwindSafe for BreakerStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.