pub enum FrameDecodeError {
ReservedBitsNotZero,
UnmaskedFrameFromClient,
MaskedFrameFromServer,
InvalidOpCode,
PayloadTooLarge,
ControlFrameFragmented,
ControlFrameTooLarge,
}Expand description
Error decoding a WebSocket frame.
Variants§
ReservedBitsNotZero
Reserved bits are not zero.
UnmaskedFrameFromClient
Unmasked frame received from client.
The server must close the connection when an unmasked frame is received.
MaskedFrameFromServer
Masked frame received from server.
The client must close the connection when a masked frame is received.
InvalidOpCode
Invalid opcode.
PayloadTooLarge
Payload length is too large.
ControlFrameFragmented
Control frame fragmented.
Control frames must not be fragmented.
ControlFrameTooLarge
Control frame too large.
Control frames must have a payload length of 125 bytes or less.
Trait Implementations§
Source§impl Debug for FrameDecodeError
impl Debug for FrameDecodeError
Source§impl Display for FrameDecodeError
impl Display for FrameDecodeError
Source§impl Error for FrameDecodeError
impl Error for FrameDecodeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for FrameDecodeError
impl RefUnwindSafe for FrameDecodeError
impl Send for FrameDecodeError
impl Sync for FrameDecodeError
impl Unpin for FrameDecodeError
impl UnwindSafe for FrameDecodeError
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