#[non_exhaustive]pub enum StationDisconnectReason {
PeerClosure,
IoFailure,
KeepaliveExpiry,
ServerRetirement,
StationRequest,
RegistrationRejected,
ProtocolFailure,
ServerFailure,
}Expand description
Why an admitted station connection stopped.
This classification deliberately stays independent of error text so telemetry consumers can aggregate connection outcomes without retaining transport- or protocol-specific details.
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.
PeerClosure
The station closed its side of the transport cleanly.
IoFailure
Reading from or writing to the station transport failed.
KeepaliveExpiry
The station sent no valid traffic before its keepalive deadline.
ServerRetirement
The server deliberately retired the session.
StationRequest
The station explicitly requested that its session end.
RegistrationRejected
The server rejected the station during registration.
ProtocolFailure
Malformed framing or another protocol error ended the session.
ServerFailure
A non-I/O server failure ended the session.
Trait Implementations§
Source§impl Clone for StationDisconnectReason
impl Clone for StationDisconnectReason
Source§fn clone(&self) -> StationDisconnectReason
fn clone(&self) -> StationDisconnectReason
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 moreimpl Copy for StationDisconnectReason
Source§impl Debug for StationDisconnectReason
impl Debug for StationDisconnectReason
impl Eq for StationDisconnectReason
Source§impl Hash for StationDisconnectReason
impl Hash for StationDisconnectReason
Source§impl PartialEq for StationDisconnectReason
impl PartialEq for StationDisconnectReason
impl StructuralPartialEq for StationDisconnectReason
Auto Trait Implementations§
impl Freeze for StationDisconnectReason
impl RefUnwindSafe for StationDisconnectReason
impl Send for StationDisconnectReason
impl Sync for StationDisconnectReason
impl Unpin for StationDisconnectReason
impl UnsafeUnpin for StationDisconnectReason
impl UnwindSafe for StationDisconnectReason
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