pub enum ParseFrameError {
Incomplete,
InvalidFormat,
}
Expand description
Represents frame parsing error
Variants§
Incomplete
Occurs when there is not enough data to parse the frame. This indicates that more data needs to be buffered
InvalidFormat
Occurs when we receive a malformed frame
Trait Implementations§
Source§impl Debug for ParseFrameError
impl Debug for ParseFrameError
Source§impl Display for ParseFrameError
impl Display for ParseFrameError
Source§impl Error for ParseFrameError
impl Error for ParseFrameError
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<ParseFrameError> for ConnectionError
impl From<ParseFrameError> for ConnectionError
Source§fn from(source: ParseFrameError) -> Self
fn from(source: ParseFrameError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParseFrameError
impl PartialEq for ParseFrameError
impl StructuralPartialEq for ParseFrameError
Auto Trait Implementations§
impl Freeze for ParseFrameError
impl RefUnwindSafe for ParseFrameError
impl Send for ParseFrameError
impl Sync for ParseFrameError
impl Unpin for ParseFrameError
impl UnwindSafe for ParseFrameError
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