pub struct PacketFrame {
pub capture_info: CaptureInfo,
pub ethernet_packet: Option<EthernetPacket>,
pub arp_packet: Option<ArpPacket>,
pub ipv4_packet: Option<Ipv4Packet>,
pub ipv6_packet: Option<Ipv6Packet>,
pub icmp_packet: Option<IcmpPacket>,
pub icmpv6_packet: Option<Icmpv6Packet>,
pub tcp_packet: Option<TcpPacket>,
pub udp_packet: Option<UdpPacket>,
}
Expand description
Packet Frame. Contains all the possible packet types
Fields§
§capture_info: CaptureInfo
§ethernet_packet: Option<EthernetPacket>
§arp_packet: Option<ArpPacket>
§ipv4_packet: Option<Ipv4Packet>
§ipv6_packet: Option<Ipv6Packet>
§icmp_packet: Option<IcmpPacket>
§icmpv6_packet: Option<Icmpv6Packet>
§tcp_packet: Option<TcpPacket>
§udp_packet: Option<UdpPacket>
Trait Implementations§
Source§impl Clone for PacketFrame
impl Clone for PacketFrame
Source§fn clone(&self) -> PacketFrame
fn clone(&self) -> PacketFrame
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 moreAuto Trait Implementations§
impl Freeze for PacketFrame
impl RefUnwindSafe for PacketFrame
impl Send for PacketFrame
impl Sync for PacketFrame
impl Unpin for PacketFrame
impl UnwindSafe for PacketFrame
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