Struct rtlola_input_plugins::pcap_plugin::PcapRecord
source · pub struct PcapRecord(/* private fields */);
Expand description
Represents a raw network packet
Trait Implementations§
source§impl Record for PcapRecord
impl Record for PcapRecord
§type CreationData = IpNetwork
type CreationData = IpNetwork
Arbitrary type of the data provided at creation time to help initializing the input method.
source§fn func_for_input(
name: &str,
data: Self::CreationData,
) -> Result<ValueProjection<Self, PcapError>, PcapError>
fn func_for_input( name: &str, data: Self::CreationData, ) -> Result<ValueProjection<Self, PcapError>, PcapError>
Given the name of an input this function returns a function that given a record returns the value for that input.
Auto Trait Implementations§
impl Freeze for PcapRecord
impl RefUnwindSafe for PcapRecord
impl Send for PcapRecord
impl Sync for PcapRecord
impl Unpin for PcapRecord
impl UnwindSafe for PcapRecord
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more