Enum etherparse::err::packet::TransportChecksumError
source · pub enum TransportChecksumError {
PayloadLen(ValueTooBigError<usize>),
Icmpv6InIpv4,
}
Expand description
Error while calculating the checksum in a transport header.
Variants§
PayloadLen(ValueTooBigError<usize>)
Error if the length of the payload is too big to be representable by the length fields.
Icmpv6InIpv4
Error when an Icmpv6 payload is found in an IPv4 packet.
Trait Implementations§
source§impl Clone for TransportChecksumError
impl Clone for TransportChecksumError
source§fn clone(&self) -> TransportChecksumError
fn clone(&self) -> TransportChecksumError
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 TransportChecksumError
impl Debug for TransportChecksumError
source§impl Display for TransportChecksumError
impl Display for TransportChecksumError
source§impl Error for TransportChecksumError
Available on crate feature std
only.
impl Error for TransportChecksumError
Available on crate feature
std
only.source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 Hash for TransportChecksumError
impl Hash for TransportChecksumError
source§impl PartialEq for TransportChecksumError
impl PartialEq for TransportChecksumError
impl Eq for TransportChecksumError
impl StructuralPartialEq for TransportChecksumError
Auto Trait Implementations§
impl Freeze for TransportChecksumError
impl RefUnwindSafe for TransportChecksumError
impl Send for TransportChecksumError
impl Sync for TransportChecksumError
impl Unpin for TransportChecksumError
impl UnwindSafe for TransportChecksumError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)