Enum awc::error::WsProtocolError [−][src]
pub enum WsProtocolError {
UnmaskedFrame,
MaskedFrame,
InvalidOpcode(u8),
InvalidLength(usize),
BadOpCode,
Overflow,
ContinuationNotStarted,
ContinuationStarted,
ContinuationFragment(OpCode),
Io(Error),
}
Expand description
Websocket protocol errors
Variants
UnmaskedFrame
Received an unmasked frame from client
MaskedFrame
Received a masked frame from server
InvalidOpcode(u8)
Tuple Fields
0: u8
Encountered invalid opcode
InvalidLength(usize)
Tuple Fields
0: usize
Invalid control frame length
BadOpCode
Bad web socket op code
Overflow
A payload reached size limit.
ContinuationNotStarted
Continuation is not started
ContinuationStarted
Received new continuation but it is already started
ContinuationFragment(OpCode)
Tuple Fields
0: OpCode
Unknown continuation fragment
Io(Error)
Tuple Fields
0: Error
Io error
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more