pub enum BulkheadEvent {
CallPermitted {
pattern_name: String,
timestamp: Instant,
concurrent_calls: usize,
},
CallRejected {
pattern_name: String,
timestamp: Instant,
max_concurrent_calls: usize,
},
CallFinished {
pattern_name: String,
timestamp: Instant,
duration: Duration,
},
CallFailed {
pattern_name: String,
timestamp: Instant,
duration: Duration,
},
}Expand description
Events emitted by the bulkhead pattern.
Variants§
CallPermitted
A call was permitted through the bulkhead.
Fields
CallRejected
A call was rejected because the bulkhead is full.
Fields
CallFinished
A call finished successfully.
Fields
CallFailed
A call finished with an error.
Trait Implementations§
Source§impl Clone for BulkheadEvent
impl Clone for BulkheadEvent
Source§fn clone(&self) -> BulkheadEvent
fn clone(&self) -> BulkheadEvent
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 moreSource§impl Debug for BulkheadEvent
impl Debug for BulkheadEvent
Source§impl ResilienceEvent for BulkheadEvent
impl ResilienceEvent for BulkheadEvent
Auto Trait Implementations§
impl Freeze for BulkheadEvent
impl RefUnwindSafe for BulkheadEvent
impl Send for BulkheadEvent
impl Sync for BulkheadEvent
impl Unpin for BulkheadEvent
impl UnsafeUnpin for BulkheadEvent
impl UnwindSafe for BulkheadEvent
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