pub enum Loss {
Ingress,
Overflow,
Rejected,
Exhausted,
Shutdown,
}Expand description
Why an event never reached its endpoint.
Spelled once, in Loss::as_str, so an application reporting these does
not restate the five names.
Variants§
Ingress
The dispatcher ingress channel was unavailable, so the new event could not reach the queue that implements the normal drop-oldest policy.
Overflow
The queue was full, so the oldest waiting event made room.
Rejected
The endpoint refused it in a way retrying cannot fix.
Exhausted
Every attempt failed.
Shutdown
Still queued when the drain deadline passed.
Implementations§
Trait Implementations§
impl Copy for Loss
impl Eq for Loss
impl StructuralPartialEq for Loss
Auto Trait Implementations§
impl Forget for Loss
impl Freeze for Loss
impl Move for Loss
impl RefUnwindSafe for Loss
impl Send for Loss
impl Sync for Loss
impl Unpin for Loss
impl UnsafeUnpin for Loss
impl UnwindSafe for Loss
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