Struct mutnet::error::UnexpectedBufferEndError
source · pub struct UnexpectedBufferEndError {
pub expected_length: usize,
pub actual_length: usize,
}
Expand description
Error returned if the data buffer is expected to be longer than it actually is.
This error can occur when a length value is read from a packet header and the actual packet is shorter than the length header value indicates.
Fields§
§expected_length: usize
The length expected.
actual_length: usize
The actual length.
Trait Implementations§
source§impl Clone for UnexpectedBufferEndError
impl Clone for UnexpectedBufferEndError
source§fn clone(&self) -> UnexpectedBufferEndError
fn clone(&self) -> UnexpectedBufferEndError
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 UnexpectedBufferEndError
impl Debug for UnexpectedBufferEndError
source§impl Display for UnexpectedBufferEndError
impl Display for UnexpectedBufferEndError
source§impl Error for UnexpectedBufferEndError
impl Error for UnexpectedBufferEndError
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<UnexpectedBufferEndError> for ParseArpError
impl From<UnexpectedBufferEndError> for ParseArpError
source§fn from(value: UnexpectedBufferEndError) -> Self
fn from(value: UnexpectedBufferEndError) -> Self
Converts to this type from the input type.
source§impl From<UnexpectedBufferEndError> for ParseIeee802_1QError
impl From<UnexpectedBufferEndError> for ParseIeee802_1QError
source§fn from(value: UnexpectedBufferEndError) -> Self
fn from(value: UnexpectedBufferEndError) -> Self
Converts to this type from the input type.
source§impl From<UnexpectedBufferEndError> for ParseIpv4Error
impl From<UnexpectedBufferEndError> for ParseIpv4Error
source§fn from(value: UnexpectedBufferEndError) -> Self
fn from(value: UnexpectedBufferEndError) -> Self
Converts to this type from the input type.
source§impl From<UnexpectedBufferEndError> for ParseIpv6Error
impl From<UnexpectedBufferEndError> for ParseIpv6Error
source§fn from(value: UnexpectedBufferEndError) -> Self
fn from(value: UnexpectedBufferEndError) -> Self
Converts to this type from the input type.
source§impl From<UnexpectedBufferEndError> for ParseIpv6ExtensionsError
impl From<UnexpectedBufferEndError> for ParseIpv6ExtensionsError
source§fn from(value: UnexpectedBufferEndError) -> Self
fn from(value: UnexpectedBufferEndError) -> Self
Converts to this type from the input type.
source§impl From<UnexpectedBufferEndError> for ParseNetworkDataError
impl From<UnexpectedBufferEndError> for ParseNetworkDataError
source§fn from(value: UnexpectedBufferEndError) -> Self
fn from(value: UnexpectedBufferEndError) -> 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 From<UnexpectedBufferEndError> for ParseUdpError
impl From<UnexpectedBufferEndError> for ParseUdpError
source§fn from(value: UnexpectedBufferEndError) -> Self
fn from(value: UnexpectedBufferEndError) -> Self
Converts to this type from the input type.
source§impl Hash for UnexpectedBufferEndError
impl Hash for UnexpectedBufferEndError
source§impl Ord for UnexpectedBufferEndError
impl Ord for UnexpectedBufferEndError
source§fn cmp(&self, other: &UnexpectedBufferEndError) -> Ordering
fn cmp(&self, other: &UnexpectedBufferEndError) -> 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 UnexpectedBufferEndError
impl PartialEq for UnexpectedBufferEndError
source§fn eq(&self, other: &UnexpectedBufferEndError) -> bool
fn eq(&self, other: &UnexpectedBufferEndError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UnexpectedBufferEndError
impl PartialOrd for UnexpectedBufferEndError
source§fn partial_cmp(&self, other: &UnexpectedBufferEndError) -> Option<Ordering>
fn partial_cmp(&self, other: &UnexpectedBufferEndError) -> 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 UnexpectedBufferEndError
impl Eq for UnexpectedBufferEndError
impl StructuralPartialEq for UnexpectedBufferEndError
Auto Trait Implementations§
impl Freeze for UnexpectedBufferEndError
impl RefUnwindSafe for UnexpectedBufferEndError
impl Send for UnexpectedBufferEndError
impl Sync for UnexpectedBufferEndError
impl Unpin for UnexpectedBufferEndError
impl UnwindSafe for UnexpectedBufferEndError
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