Enum segment_rs::frame::ParseFrameError
source · [−]pub enum ParseFrameError {
Incomplete,
InvalidFormat,
Utf8Error(Utf8Error),
ParseFloatError(ParseFloatError),
}
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 received a malformed frame
Utf8Error(Utf8Error)
Occurs when we encounter an error while converting a Byte to a string
ParseFloatError(ParseFloatError)
Occurs when we encounter an error while parsing the floating point
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
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<ParseFloatError> for ParseFrameError
impl From<ParseFloatError> for ParseFrameError
sourcefn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
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.
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