pub struct PcapRecords<'a> { /* private fields */ }
Expand description
Collection of pcap records associated with a libpcap capture
Implementations§
Source§impl<'a> PcapRecords<'a>
impl<'a> PcapRecords<'a>
pub fn len(&self) -> usize
pub fn into_inner(self) -> Vec<PcapRecord<'a>>
Sourcepub fn parse<'b>(
input: &'b [u8],
endianness: Endianness,
) -> Result<(&'b [u8], PcapRecords<'b>), Error>
pub fn parse<'b>( input: &'b [u8], endianness: Endianness, ) -> Result<(&'b [u8], PcapRecords<'b>), Error>
Parse a slice of bytes that correspond to a set of records, without libcap file format header (https://wiki.wireshark.org/Development/LibpcapFileFormat). Endianness of the byte slice must be known.
Trait Implementations§
Source§impl<'a> Clone for PcapRecords<'a>
impl<'a> Clone for PcapRecords<'a>
Source§fn clone(&self) -> PcapRecords<'a>
fn clone(&self) -> PcapRecords<'a>
Returns a copy 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<'a> Freeze for PcapRecords<'a>
impl<'a> RefUnwindSafe for PcapRecords<'a>
impl<'a> Send for PcapRecords<'a>
impl<'a> Sync for PcapRecords<'a>
impl<'a> Unpin for PcapRecords<'a>
impl<'a> UnwindSafe for PcapRecords<'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