pub struct FilePacketSource { /* private fields */ }Expand description
Packet source backed by a PCAP/PCAPNG file.
Implementations§
Trait Implementations§
Source§impl Clone for FilePacketSource
impl Clone for FilePacketSource
Source§fn clone(&self) -> FilePacketSource
fn clone(&self) -> FilePacketSource
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 PacketSource for FilePacketSource
impl PacketSource for FilePacketSource
Source§type Reader = FilePacketReader
type Reader = FilePacketReader
The reader type this source produces
Source§fn metadata(&self) -> &PacketSourceMetadata
fn metadata(&self) -> &PacketSourceMetadata
Get metadata about this source
Source§fn reader(&self, range: Option<&PacketRange>) -> Result<Self::Reader, Error>
fn reader(&self, range: Option<&PacketRange>) -> Result<Self::Reader, Error>
Create a reader for the given range.
If range is None, reads the entire source.
Source§fn partitions(&self, _max_partitions: usize) -> Result<Vec<PacketRange>, Error>
fn partitions(&self, _max_partitions: usize) -> Result<Vec<PacketRange>, Error>
Compute partition boundaries for parallel reading. Read more
Auto Trait Implementations§
impl Freeze for FilePacketSource
impl RefUnwindSafe for FilePacketSource
impl Send for FilePacketSource
impl Sync for FilePacketSource
impl Unpin for FilePacketSource
impl UnwindSafe for FilePacketSource
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