pub struct ReplayConfig {
pub interfaces: Vec<String>,
pub speed: f64,
pub pps: Option<u64>,
}Expand description
Live replay configuration.
Fields§
§interfaces: Vec<String>Network interface names for replay (fan-out: each packet sent to all).
Accepts interfaces = ["eth0", "eth1"] or legacy interface = "eth0".
speed: f64Replay speed multiplier (1.0 = real-time, 2.0 = 2× faster).
Ignored when pps is set.
pps: Option<u64>Fixed replay rate in packets per second.
When set, speed is ignored and original inter-packet timing is discarded.
Trait Implementations§
Source§impl Debug for ReplayConfig
impl Debug for ReplayConfig
Source§impl Default for ReplayConfig
impl Default for ReplayConfig
Source§impl<'de> Deserialize<'de> for ReplayConfig
impl<'de> Deserialize<'de> for ReplayConfig
Source§fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
Given a mutable
Value, allows you to deserialize the type from it,
or accumulate 1 or more errorsAuto Trait Implementations§
impl Freeze for ReplayConfig
impl RefUnwindSafe for ReplayConfig
impl Send for ReplayConfig
impl Sync for ReplayConfig
impl Unpin for ReplayConfig
impl UnsafeUnpin for ReplayConfig
impl UnwindSafe for ReplayConfig
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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