pub enum CloseCode {
Normal = 1_000,
ProtocolError = 1_002,
InternalError = 1_011,
ConnectionInitTimeout = 4_408,
TooManyInitRequests = 4_429,
SubscriberAlreadyExists = 4_409,
Unauthorized = 4_401,
SubscriptionNotFound = 4_404,
}Expand description
Close codes for WebSocket connection.
Variants§
Normal = 1_000
Normal closure.
ProtocolError = 1_002
Client violated protocol.
InternalError = 1_011
Internal server error.
ConnectionInitTimeout = 4_408
Connection initialization timeout.
TooManyInitRequests = 4_429
Too many initialization requests.
SubscriberAlreadyExists = 4_409
Subscriber already exists (duplicate ID).
Unauthorized.
SubscriptionNotFound = 4_404
Subscription not found (invalid ID on complete).
Implementations§
Trait Implementations§
impl Copy for CloseCode
impl Eq for CloseCode
impl StructuralPartialEq for CloseCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.