#[non_exhaustive]pub enum SessionClosedReason {
Idle,
HostShutdown,
Leave,
Unknown(String),
}Expand description
The closed-reason vocabulary. Server-produced and published OPEN by owner ruling — the menu-B pick, which settles that this notification reason enum publishes open rather than resting on the result-vocabulary rule by analogy. A crash is deliberately not a reason, because a crash emits no notification at all.
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.
Idle
The idle unload policy fired.
HostShutdown
Orderly daemon or stdio-EOF drain, including the SIGTERM/SIGINT wind-down.
Leave
A session/leave released this session after proven physical release.
Emitted before its paired session/statusChanged and the
session/leaveCompleted terminal.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for SessionClosedReason
impl Clone for SessionClosedReason
Source§impl Debug for SessionClosedReason
impl Debug for SessionClosedReason
Source§impl<'de> Deserialize<'de> for SessionClosedReason
impl<'de> Deserialize<'de> for SessionClosedReason
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SessionClosedReason
Source§impl PartialEq for SessionClosedReason
impl PartialEq for SessionClosedReason
Source§impl Serialize for SessionClosedReason
impl Serialize for SessionClosedReason
impl StructuralPartialEq for SessionClosedReason
Auto Trait Implementations§
impl Freeze for SessionClosedReason
impl RefUnwindSafe for SessionClosedReason
impl Send for SessionClosedReason
impl Sync for SessionClosedReason
impl Unpin for SessionClosedReason
impl UnsafeUnpin for SessionClosedReason
impl UnwindSafe for SessionClosedReason
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