#[non_exhaustive]pub enum Event {
Connected,
Disconnected,
ReadClosed,
IoFailed {
direction: Direction,
kind: ErrorKind,
},
Rejected,
DrainStarted,
DrainCompleted,
DrainTimedOut,
HandoffStarted,
HandoffCompleted,
HandoffAborted,
}Expand description
Bounded event values; no free-form message or client identity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connected
An observed transport was wrapped.
Disconnected
An observed transport was dropped.
ReadClosed
The peer ended its output stream.
IoFailed
An I/O operation failed.
Rejected
Negotiation or authentication was refused by the caller.
DrainStarted
Admission was closed.
DrainCompleted
All admitted work completed after drain began.
DrainTimedOut
A drain deadline expired, without cancelling active work.
HandoffStarted
The consumer began a cooperative handoff.
HandoffCompleted
The consumer committed a cooperative handoff.
HandoffAborted
The consumer abandoned a cooperative handoff.
Trait Implementations§
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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