pub enum FrameError {
InsufficientData {
needed: usize,
have: usize,
},
TooLarge {
size: usize,
max: usize,
},
InvalidHeader(String),
InvalidMasking(String),
InvalidOpcode(u8),
ReservedBitsSet,
FragmentedControlFrame,
}Expand description
Frame parsing and processing errors
Variants§
InsufficientData
Insufficient data to parse frame
TooLarge
Frame too large
InvalidHeader(String)
Invalid frame header
InvalidMasking(String)
Invalid masking
InvalidOpcode(u8)
Invalid opcode
ReservedBitsSet
Reserved bits set
FragmentedControlFrame
Control frames cannot be fragmented
Trait Implementations§
Source§impl Clone for FrameError
impl Clone for FrameError
Source§fn clone(&self) -> FrameError
fn clone(&self) -> FrameError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameError
impl Debug for FrameError
Source§impl Display for FrameError
impl Display for FrameError
Source§impl Error for FrameError
impl Error for FrameError
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()
Source§impl From<FrameError> for Error
impl From<FrameError> for Error
Source§fn from(source: FrameError) -> Self
fn from(source: FrameError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FrameError
impl RefUnwindSafe for FrameError
impl Send for FrameError
impl Sync for FrameError
impl Unpin for FrameError
impl UnwindSafe for FrameError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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