pub enum BuildSliceWriteError {
Space(usize),
PayloadLen(ValueTooBigError<usize>),
Ipv4Exts(ExtsWalkError),
Ipv6Exts(ExtsWalkError),
Icmpv6InIpv4,
ArpHeaderNotMatch,
}Expand description
Error while serializing a packet into a byte slice.
Variants§
Space(usize)
Not enough space is available in the target slice. Contains the minimum required length.
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 BuildSliceWriteError
impl Clone for BuildSliceWriteError
Source§fn clone(&self) -> BuildSliceWriteError
fn clone(&self) -> BuildSliceWriteError
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 BuildSliceWriteError
impl Debug for BuildSliceWriteError
Source§impl Display for BuildSliceWriteError
impl Display for BuildSliceWriteError
impl Eq for BuildSliceWriteError
Source§impl Error for BuildSliceWriteError
impl Error for BuildSliceWriteError
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<SliceWriteSpaceError> for BuildSliceWriteError
impl From<SliceWriteSpaceError> for BuildSliceWriteError
Source§fn from(value: SliceWriteSpaceError) -> Self
fn from(value: SliceWriteSpaceError) -> Self
Converts to this type from the input type.
Source§impl From<TransportChecksumError> for BuildSliceWriteError
impl From<TransportChecksumError> for BuildSliceWriteError
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 BuildSliceWriteError
impl From<ValueTooBigError<usize>> for BuildSliceWriteError
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 BuildSliceWriteError
impl Hash for BuildSliceWriteError
Source§impl PartialEq for BuildSliceWriteError
impl PartialEq for BuildSliceWriteError
Source§fn eq(&self, other: &BuildSliceWriteError) -> bool
fn eq(&self, other: &BuildSliceWriteError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BuildSliceWriteError
Auto Trait Implementations§
impl Freeze for BuildSliceWriteError
impl RefUnwindSafe for BuildSliceWriteError
impl Send for BuildSliceWriteError
impl Sync for BuildSliceWriteError
impl Unpin for BuildSliceWriteError
impl UnsafeUnpin for BuildSliceWriteError
impl UnwindSafe for BuildSliceWriteError
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