pub enum ParseHeaderError {
CommandParseFailed,
LengthParseFailed,
}Expand description
The error type for parsing a header which was transferred via TCP.
Variants§
CommandParseFailed
Parsing of the command failed. This typically indicates that the protocol implementation is incomplete.
LengthParseFailed
Parsing of the length failed, possibly because the length is too large (>=2^32)
Trait Implementations§
Source§impl Clone for ParseHeaderError
impl Clone for ParseHeaderError
Source§fn clone(&self) -> ParseHeaderError
fn clone(&self) -> ParseHeaderError
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 ParseHeaderError
impl Debug for ParseHeaderError
Source§impl PartialEq for ParseHeaderError
impl PartialEq for ParseHeaderError
impl Copy for ParseHeaderError
impl StructuralPartialEq for ParseHeaderError
Auto Trait Implementations§
impl Freeze for ParseHeaderError
impl RefUnwindSafe for ParseHeaderError
impl Send for ParseHeaderError
impl Sync for ParseHeaderError
impl Unpin for ParseHeaderError
impl UnwindSafe for ParseHeaderError
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