1 2 3 4 5 6 7
#[derive(Debug, Clone, PartialEq)] pub enum CloseReason { /// Stopping websocket because respective session pool is stopped PoolStopped, /// Closed by peer, we just propagate the message here PeerClose(u16, String), }