pub enum FrameParseError {
WrongFinRSV,
Incomplete {
expected: usize,
obtained: usize,
},
Malformed,
NullContent,
InvalidUtf8(FromUtf8Error),
UnsupportedOpCode,
}Expand description
Error indicating a frame parsing error
Variants§
WrongFinRSV
Indicates that the first 4 bits of the message are unsupported
Incomplete
Indicates that the message content is incomplete
Malformed
Indicates that the message is malformed
NullContent
Indicates that the message contains 0 bytes
InvalidUtf8(FromUtf8Error)
The text sent through the message is not valid a utf-8
UnsupportedOpCode
Indicates an unsupported operation code contained in the frame
Trait Implementations§
Source§impl Debug for FrameParseError
impl Debug for FrameParseError
Source§impl Display for FrameParseError
impl Display for FrameParseError
Source§impl Error for FrameParseError
impl Error for FrameParseError
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 FrameParseError
impl RefUnwindSafe for FrameParseError
impl Send for FrameParseError
impl Sync for FrameParseError
impl Unpin for FrameParseError
impl UnwindSafe for FrameParseError
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