pub struct CloseCode;Expand description
WebSocket close codes of the gateway, and the one the SDK closes with before it reconnects (CLIENT_RECONNECT).
Implementations§
Source§impl CloseCode
impl CloseCode
pub const NORMAL: u16 = 1000
pub const PROTOCOL_ERROR: u16 = 1002
pub const BINARY_NOT_SUPPORTED: u16 = 1003
pub const INVALID_UTF8: u16 = 1007
pub const RATE_LIMITED: u16 = 1008
pub const MESSAGE_TOO_BIG: u16 = 1009
pub const INTERNAL_ERROR: u16 = 1011
pub const SERVICE_RESTART: u16 = 1012
pub const TRY_AGAIN_LATER: u16 = 1013
pub const UNAUTHORIZED: u16 = 4001
pub const FORBIDDEN: u16 = 4003
pub const SLOW_CONSUMER: u16 = 4008
pub const TOO_MANY_CONNECTIONS: u16 = 4029
Sourcepub const CLIENT_RECONNECT: u16 = 4000
pub const CLIENT_RECONNECT: u16 = 4000
Sent by the SDK when it drops the connection itself (heartbeat timeout, client buffer full), then reconnects.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CloseCode
impl RefUnwindSafe for CloseCode
impl Send for CloseCode
impl Sync for CloseCode
impl Unpin for CloseCode
impl UnsafeUnpin for CloseCode
impl UnwindSafe for CloseCode
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