pub enum WebSocketCloseCode {
Show 13 variants
Normal,
GoingAway,
Protocol,
Unsupported,
InvalidData,
Policy,
MessageTooBig,
Internal,
Restart,
TryAgainLater,
MandatoryExtension,
BadGateway,
Other(u16),
}Expand description
Re-exported public API.
Public Caelix enumeration WebSocketCloseCode.
Variants§
Normal
Public Caelix API.
GoingAway
Public Caelix API.
Protocol
Public Caelix API.
Unsupported
Public Caelix API.
InvalidData
Public Caelix API.
Policy
Public Caelix API.
MessageTooBig
Public Caelix API.
Internal
Public Caelix API.
Restart
Public Caelix API.
TryAgainLater
Public Caelix API.
MandatoryExtension
Public Caelix API.
BadGateway
Public Caelix API.
Other(u16)
Public Caelix API.
Implementations§
Source§impl WebSocketCloseCode
impl WebSocketCloseCode
Sourcepub fn is_server_sendable(self) -> bool
pub fn is_server_sendable(self) -> bool
Runs the is_server_sendable public API operation.
Trait Implementations§
Source§impl Clone for WebSocketCloseCode
impl Clone for WebSocketCloseCode
Source§fn clone(&self) -> WebSocketCloseCode
fn clone(&self) -> WebSocketCloseCode
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 WebSocketCloseCode
Source§impl Debug for WebSocketCloseCode
impl Debug for WebSocketCloseCode
impl Eq for WebSocketCloseCode
Source§impl PartialEq for WebSocketCloseCode
impl PartialEq for WebSocketCloseCode
impl StructuralPartialEq for WebSocketCloseCode
Auto Trait Implementations§
impl Freeze for WebSocketCloseCode
impl RefUnwindSafe for WebSocketCloseCode
impl Send for WebSocketCloseCode
impl Sync for WebSocketCloseCode
impl Unpin for WebSocketCloseCode
impl UnsafeUnpin for WebSocketCloseCode
impl UnwindSafe for WebSocketCloseCode
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