Enum mutnet::tcp::ParseTcpError
source · pub enum ParseTcpError {
UnexpectedBufferEnd(UnexpectedBufferEndError),
InvalidChecksum(InvalidChecksumError),
DataOffsetHeaderValueTooSmall {
data_offset_header: usize,
},
}
Expand description
Error returned when parsing a TCP header.
Variants§
UnexpectedBufferEnd(UnexpectedBufferEndError)
The data buffer ended unexpectedly.
InvalidChecksum(InvalidChecksumError)
Invalid checksum.
DataOffsetHeaderValueTooSmall
Data offset header smaller than minimum (5).
Trait Implementations§
source§impl Clone for ParseTcpError
impl Clone for ParseTcpError
source§fn clone(&self) -> ParseTcpError
fn clone(&self) -> ParseTcpError
Returns a copy 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 ParseTcpError
impl Debug for ParseTcpError
source§impl Display for ParseTcpError
impl Display for ParseTcpError
source§impl Error for ParseTcpError
impl Error for ParseTcpError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<InvalidChecksumError> for ParseTcpError
impl From<InvalidChecksumError> for ParseTcpError
source§fn from(value: InvalidChecksumError) -> Self
fn from(value: InvalidChecksumError) -> Self
Converts to this type from the input type.
source§impl From<ParseTcpError> for ParseNetworkDataError
impl From<ParseTcpError> for ParseNetworkDataError
source§fn from(value: ParseTcpError) -> Self
fn from(value: ParseTcpError) -> Self
Converts to this type from the input type.
source§impl From<UnexpectedBufferEndError> for ParseTcpError
impl From<UnexpectedBufferEndError> for ParseTcpError
source§fn from(value: UnexpectedBufferEndError) -> Self
fn from(value: UnexpectedBufferEndError) -> Self
Converts to this type from the input type.
source§impl Hash for ParseTcpError
impl Hash for ParseTcpError
source§impl Ord for ParseTcpError
impl Ord for ParseTcpError
source§fn cmp(&self, other: &ParseTcpError) -> Ordering
fn cmp(&self, other: &ParseTcpError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ParseTcpError
impl PartialEq for ParseTcpError
source§fn eq(&self, other: &ParseTcpError) -> bool
fn eq(&self, other: &ParseTcpError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ParseTcpError
impl PartialOrd for ParseTcpError
source§fn partial_cmp(&self, other: &ParseTcpError) -> Option<Ordering>
fn partial_cmp(&self, other: &ParseTcpError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ParseTcpError
impl Eq for ParseTcpError
impl StructuralPartialEq for ParseTcpError
Auto Trait Implementations§
impl Freeze for ParseTcpError
impl RefUnwindSafe for ParseTcpError
impl Send for ParseTcpError
impl Sync for ParseTcpError
impl Unpin for ParseTcpError
impl UnwindSafe for ParseTcpError
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