#[repr(u16)]pub enum CloseCode {
Show 15 variants
Normal = 1_000,
GoingAway = 1_001,
ProtocolError = 1_002,
UnsupportedData = 1_003,
NoStatusReceived = 1_005,
AbnormalClosure = 1_006,
InvalidPayloadData = 1_007,
PolicyViolation = 1_008,
MessageTooBig = 1_009,
MandatoryExtension = 1_010,
InternalError = 1_011,
ServiceRestart = 1_012,
TryAgainLater = 1_013,
BadGateway = 1_014,
TlsHandshakeFailure = 1_015,
}Expand description
Close-Status-Code (RFC 6455 §7.4.1 + §7.4.2).
Variants§
Normal = 1_000
1000 Normal Closure.
GoingAway = 1_001
1001 Going Away.
ProtocolError = 1_002
1002 Protocol Error.
UnsupportedData = 1_003
1003 Unsupported Data.
NoStatusReceived = 1_005
1005 No Status Received (reserved, NICHT auf Wire).
AbnormalClosure = 1_006
1006 Abnormal Closure (reserved, NICHT auf Wire).
InvalidPayloadData = 1_007
1007 Invalid Frame Payload Data (UTF-8).
PolicyViolation = 1_008
1008 Policy Violation.
MessageTooBig = 1_009
1009 Message Too Big.
MandatoryExtension = 1_010
1010 Mandatory Extension (Client only).
InternalError = 1_011
1011 Internal Error.
ServiceRestart = 1_012
1012 Service Restart.
TryAgainLater = 1_013
1013 Try Again Later.
BadGateway = 1_014
1014 Bad Gateway.
TlsHandshakeFailure = 1_015
1015 TLS Handshake Failure (reserved, NICHT auf Wire).
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