pub enum BuildVecWriteError {
PayloadLen(ValueTooBigError<usize>),
Ipv4Exts(ExtsWalkError),
Ipv6Exts(ExtsWalkError),
Icmpv6InIpv4,
ArpHeaderNotMatch,
}Available on crate feature
alloc only.Expand description
Error while serializing a packet into a alloc::vec::Vec.
Variants§
PayloadLen(ValueTooBigError<usize>)
Error if the length of the payload is too big to be representable by the length fields.
Ipv4Exts(ExtsWalkError)
Error if the IPv4 extensions can not be serialized because of internal consistency errors.
Ipv6Exts(ExtsWalkError)
Error if the IPv6 extensions can not be serialized because of internal consistency errors.
Icmpv6InIpv4
Error if ICMPv6 is packaged in an IPv4 packet (it is undefined how to calculate the checksum).
ArpHeaderNotMatch
Address size defined in the ARP header does not match the actual size.
Trait Implementations§
Source§impl Clone for BuildVecWriteError
impl Clone for BuildVecWriteError
Source§fn clone(&self) -> BuildVecWriteError
fn clone(&self) -> BuildVecWriteError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BuildVecWriteError
impl Debug for BuildVecWriteError
Source§impl Display for BuildVecWriteError
impl Display for BuildVecWriteError
impl Eq for BuildVecWriteError
Source§impl Error for BuildVecWriteError
impl Error for BuildVecWriteError
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 From<Infallible> for BuildVecWriteError
impl From<Infallible> for BuildVecWriteError
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<TransportChecksumError> for BuildVecWriteError
impl From<TransportChecksumError> for BuildVecWriteError
Source§fn from(value: TransportChecksumError) -> Self
fn from(value: TransportChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<ValueTooBigError<usize>> for BuildVecWriteError
impl From<ValueTooBigError<usize>> for BuildVecWriteError
Source§fn from(value: ValueTooBigError<usize>) -> Self
fn from(value: ValueTooBigError<usize>) -> Self
Converts to this type from the input type.
Source§impl Hash for BuildVecWriteError
impl Hash for BuildVecWriteError
Source§impl PartialEq for BuildVecWriteError
impl PartialEq for BuildVecWriteError
Source§fn eq(&self, other: &BuildVecWriteError) -> bool
fn eq(&self, other: &BuildVecWriteError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BuildVecWriteError
Auto Trait Implementations§
impl Freeze for BuildVecWriteError
impl RefUnwindSafe for BuildVecWriteError
impl Send for BuildVecWriteError
impl Sync for BuildVecWriteError
impl Unpin for BuildVecWriteError
impl UnsafeUnpin for BuildVecWriteError
impl UnwindSafe for BuildVecWriteError
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