pub struct ReplayOptions {
pub interfaces: Vec<String>,
pub speed: ReplaySpeed,
pub filter: Filter,
pub bpf_filter: Option<BpfExpr>,
}Expand description
Options for replay_file.
Fields§
§interfaces: Vec<String>Network interface names to transmit on (e.g. ["eth0", "eth1"]).
Each packet is sent to all interfaces (fan-out).
speed: ReplaySpeedPacket pacing mode.
filter: FilterStructured filter applied before sending each packet.
bpf_filter: Option<BpfExpr>BPF expression filter AND-ed with filter. None = no BPF filter.
Auto Trait Implementations§
impl Freeze for ReplayOptions
impl RefUnwindSafe for ReplayOptions
impl Send for ReplayOptions
impl Sync for ReplayOptions
impl Unpin for ReplayOptions
impl UnsafeUnpin for ReplayOptions
impl UnwindSafe for ReplayOptions
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