Enum segment_rs::frame::ParseFrameError
source · 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
sourceimpl Debug for ParseFrameError
impl Debug for ParseFrameError
sourceimpl Display for ParseFrameError
impl Display for ParseFrameError
sourceimpl Error for ParseFrameError
impl Error for ParseFrameError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ParseFrameError> for ConnectionError
impl From<ParseFrameError> for ConnectionError
sourcefn from(source: ParseFrameError) -> Self
fn from(source: ParseFrameError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ParseFrameError> for ParseFrameError
impl PartialEq<ParseFrameError> for ParseFrameError
sourcefn eq(&self, other: &ParseFrameError) -> bool
fn eq(&self, other: &ParseFrameError) -> bool
impl StructuralPartialEq for ParseFrameError
Auto Trait Implementations
impl RefUnwindSafe for ParseFrameError
impl Send for ParseFrameError
impl Sync for ParseFrameError
impl Unpin for ParseFrameError
impl UnwindSafe for ParseFrameError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more