Enum etherparse::err::ip_auth::IcvLenError
source · pub enum IcvLenError {
TooBig(usize),
Unaligned(usize),
}
Expand description
Error when creating an crate::IpAuthHeader
and the
length of the raw ICV is non representable in an IP authentication
header.
Variants§
TooBig(usize)
Error when the payload length is bigger then
crate::IpAuthHeader::MAX_ICV_LEN
(1016).
Unaligned(usize)
Error when the ICV length can not be represented
as a multiple of 4-bytes in the authentication header
(0 == raw_icv.len() % 4
is not fulfilled).
Trait Implementations§
source§impl Clone for IcvLenError
impl Clone for IcvLenError
source§fn clone(&self) -> IcvLenError
fn clone(&self) -> IcvLenError
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 IcvLenError
impl Debug for IcvLenError
source§impl Display for IcvLenError
impl Display for IcvLenError
source§impl Error for IcvLenError
Available on crate feature std
only.
impl Error for IcvLenError
Available on crate feature
std
only.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 Hash for IcvLenError
impl Hash for IcvLenError
source§impl PartialEq for IcvLenError
impl PartialEq for IcvLenError
source§fn eq(&self, other: &IcvLenError) -> bool
fn eq(&self, other: &IcvLenError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IcvLenError
impl StructuralPartialEq for IcvLenError
Auto Trait Implementations§
impl Freeze for IcvLenError
impl RefUnwindSafe for IcvLenError
impl Send for IcvLenError
impl Sync for IcvLenError
impl Unpin for IcvLenError
impl UnwindSafe for IcvLenError
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