Enum ratchet_rs::ProtocolError [−][src]
pub enum ProtocolError {
Encoding,
UnknownProtocol,
OpCode(OpCodeParseErr),
UnmaskedFrame,
MaskedFrame,
FragmentedControl,
FrameOverflow,
UnknownExtension,
ContinuationNotStarted,
ContinuationAlreadyStarted,
CloseCode(u16),
ControlDataMismatch,
}
Expand description
WebSocket protocol errors.
Variants
Encoding
Invalid encoding was received.
UnknownProtocol
A peer selected a protocol that was not sent.
OpCode(OpCodeParseErr)
An invalid OpCode was received.
UnmaskedFrame
The peer sent an unmasked frame when one was expected.
MaskedFrame
The peer sent an masked frame when one was not expected.
FragmentedControl
Received a fragmented control frame
FrameOverflow
A received frame exceeded the maximum permitted size
UnknownExtension
A peer attempted to use an extension that has not been negotiated
ContinuationNotStarted
Received a continuation frame before one has been started
ContinuationAlreadyStarted
A peer attempted to start another continuation before the previous one has completed
CloseCode(u16)
Tuple Fields
0: u16
Received an illegal close code
ControlDataMismatch
Received unexpected control frame data
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnwindSafe for ProtocolError
Blanket Implementations
Mutably borrows from an owned value. Read more