pub struct FragmentKey {
pub src: Ipv4Addr,
pub dst: Ipv4Addr,
pub id: u16,
pub protocol: u8,
}Expand description
Key for identifying a fragment group.
Fields§
§src: Ipv4Addr§dst: Ipv4Addr§id: u16§protocol: u8Implementations§
Source§impl FragmentKey
impl FragmentKey
Sourcepub fn from_packet(packet: &[u8]) -> Result<Self, FieldError>
pub fn from_packet(packet: &[u8]) -> Result<Self, FieldError>
Create a key from a packet.
Trait Implementations§
Source§impl Clone for FragmentKey
impl Clone for FragmentKey
Source§fn clone(&self) -> FragmentKey
fn clone(&self) -> FragmentKey
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 FragmentKey
impl Debug for FragmentKey
Source§impl Hash for FragmentKey
impl Hash for FragmentKey
Source§impl PartialEq for FragmentKey
impl PartialEq for FragmentKey
impl Eq for FragmentKey
impl StructuralPartialEq for FragmentKey
Auto Trait Implementations§
impl Freeze for FragmentKey
impl RefUnwindSafe for FragmentKey
impl Send for FragmentKey
impl Sync for FragmentKey
impl Unpin for FragmentKey
impl UnsafeUnpin for FragmentKey
impl UnwindSafe for FragmentKey
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