#[non_exhaustive]pub enum CloseReason {
Drained,
Requested,
DeadlineAfterPossibleSend,
TransportLost,
ConnectFailed,
ConnectTimedOut,
UnexpectedReply,
MalformedReply,
InboundRetainedCapacity,
MatchKeyMismatch {
expected: MatchKey,
received: MatchKey,
},
}Expand description
Why an epoch must close.
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.
Drained
Accepted work drained after admission closed.
Requested
The owner explicitly requested closure.
DeadlineAfterPossibleSend
A possibly-sent operation reached its deadline.
TransportLost
The transport reported loss of the connection.
ConnectFailed
One exact nonblocking connection attempt failed before establishment.
ConnectTimedOut
One exact nonblocking connection attempt exceeded its absolute deadline.
UnexpectedReply
A reply arrived when no operation could own it.
MalformedReply
The adapter rejected a complete inbound frame as malformed.
InboundRetainedCapacity
A complete inbound frame exceeded its configured retained-byte bound.
MatchKeyMismatch
A reply key did not equal the wire-order front.
Trait Implementations§
Source§impl Clone for CloseReason
impl Clone for CloseReason
impl Copy for CloseReason
Source§impl Debug for CloseReason
impl Debug for CloseReason
impl Eq for CloseReason
Source§impl PartialEq for CloseReason
impl PartialEq for CloseReason
impl StructuralPartialEq for CloseReason
Auto Trait Implementations§
impl Freeze for CloseReason
impl RefUnwindSafe for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Unpin for CloseReason
impl UnsafeUnpin for CloseReason
impl UnwindSafe for CloseReason
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