Enum ws_tool::errors::ProtocolError [−][src]
pub enum ProtocolError {
Show 13 variants
InsufficientLen(usize),
InvalidLeadingBits(u8),
InvalidOpcode(u8),
InvalidLeadingLen(u8),
MisMatchDataLen(usize, usize),
MissInitialFragmentedFrame,
NotContinueFrameAfterFragmented,
FragmentedControlFrame,
ControlFrameTooBig(usize),
InvalidCloseFramePayload,
InvalidUtf8,
InvalidCloseCode(u16),
PayloadTooLarge(usize),
}Expand description
errors during decode frame from bytes
Variants
InsufficientLen(usize)
Tuple Fields
0: usizeInvalidLeadingBits(u8)
Tuple Fields
0: u8InvalidOpcode(u8)
Tuple Fields
0: u8InvalidLeadingLen(u8)
Tuple Fields
0: u8MisMatchDataLen(usize, usize)
MissInitialFragmentedFrame
NotContinueFrameAfterFragmented
FragmentedControlFrame
ControlFrameTooBig(usize)
Tuple Fields
0: usizeInvalidCloseFramePayload
InvalidUtf8
InvalidCloseCode(u16)
Tuple Fields
0: u16PayloadTooLarge(usize)
Tuple Fields
0: usizeTrait Implementations
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
pub fn vzip(self) -> V
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
