pub enum IpDefragError {
UnalignedFragmentPayloadLen {
offset: IpFragOffset,
payload_len: usize,
},
SegmentTooBig {
offset: IpFragOffset,
payload_len: usize,
max: u16,
},
ConflictingEnd {
previous_end: u16,
conflicting_end: u16,
},
AllocationFailure {
len: usize,
},
}Available on crate feature
std only.Variants§
UnalignedFragmentPayloadLen
Error if a payload lenght of a IP Fragment packet is not a multiple of 16 and the “more fragments” flag is set.
SegmentTooBig
Error if a segment is bigger then the maximum allowed size.
ConflictingEnd
Error if multiple TP segments were received with the “more segment” unset and differing end points.
Fields
AllocationFailure
Error if not enough memory could be allocated to store the TP payload.
Trait Implementations§
Source§impl Clone for IpDefragError
impl Clone for IpDefragError
Source§fn clone(&self) -> IpDefragError
fn clone(&self) -> IpDefragError
Returns a duplicate 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 IpDefragError
impl Debug for IpDefragError
Source§impl Display for IpDefragError
impl Display for IpDefragError
Source§impl Error for IpDefragError
impl Error for IpDefragError
1.30.0 · 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 IpDefragError
impl Hash for IpDefragError
Source§impl Ord for IpDefragError
impl Ord for IpDefragError
Source§fn cmp(&self, other: &IpDefragError) -> Ordering
fn cmp(&self, other: &IpDefragError) -> 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 IpDefragError
impl PartialEq for IpDefragError
Source§impl PartialOrd for IpDefragError
impl PartialOrd for IpDefragError
impl Eq for IpDefragError
impl StructuralPartialEq for IpDefragError
Auto Trait Implementations§
impl Freeze for IpDefragError
impl RefUnwindSafe for IpDefragError
impl Send for IpDefragError
impl Sync for IpDefragError
impl Unpin for IpDefragError
impl UnsafeUnpin for IpDefragError
impl UnwindSafe for IpDefragError
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