pub struct LegacyPcapBlock<'a> {
pub ts_sec: u32,
pub ts_usec: u32,
pub caplen: u32,
pub origlen: u32,
pub data: &'a [u8],
}
Expand description
Container for network data in legacy Pcap files
Fields§
§ts_sec: u32
§ts_usec: u32
§caplen: u32
§origlen: u32
§data: &'a [u8]
Trait Implementations§
Source§impl<'a> Debug for LegacyPcapBlock<'a>
impl<'a> Debug for LegacyPcapBlock<'a>
Source§impl<'a> From<&'a LegacyPcapBlock<'a>> for PcapBlock<'a>
impl<'a> From<&'a LegacyPcapBlock<'a>> for PcapBlock<'a>
Source§fn from(b: &'a LegacyPcapBlock<'_>) -> PcapBlock<'a>
fn from(b: &'a LegacyPcapBlock<'_>) -> PcapBlock<'a>
Converts to this type from the input type.
Source§impl<'a> From<LegacyPcapBlock<'a>> for PcapBlockOwned<'a>
impl<'a> From<LegacyPcapBlock<'a>> for PcapBlockOwned<'a>
Source§fn from(b: LegacyPcapBlock<'a>) -> PcapBlockOwned<'a>
fn from(b: LegacyPcapBlock<'a>) -> PcapBlockOwned<'a>
Converts to this type from the input type.
Source§impl<'a> ToVec for LegacyPcapBlock<'a>
Available on crate feature serialize
only.
impl<'a> ToVec for LegacyPcapBlock<'a>
Available on crate feature
serialize
only.Auto Trait Implementations§
impl<'a> Freeze for LegacyPcapBlock<'a>
impl<'a> RefUnwindSafe for LegacyPcapBlock<'a>
impl<'a> Send for LegacyPcapBlock<'a>
impl<'a> Sync for LegacyPcapBlock<'a>
impl<'a> Unpin for LegacyPcapBlock<'a>
impl<'a> UnwindSafe for LegacyPcapBlock<'a>
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