pub struct Packet {
pub timestamp: Duration,
pub data: Vec<u8>,
}Fields§
§timestamp: Duration§data: Vec<u8>Implementations§
Source§impl Packet
impl Packet
pub fn get_mutable_ip_packet(&mut self) -> Option<MutableIpv4Packet<'_>>
Trait Implementations§
Source§impl From<PcapPacket<'_>> for Packet
impl From<PcapPacket<'_>> for Packet
Source§fn from(p: PcapPacket<'_>) -> Packet
fn from(p: PcapPacket<'_>) -> Packet
Converts to this type from the input type.
Source§impl Ord for Packet
Used for packet ordering before pcap export
impl Ord for Packet
Used for packet ordering before pcap export
Source§impl PartialOrd for Packet
impl PartialOrd for Packet
impl Eq for Packet
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.