Struct netem_trace::model::bw::NormalizedBwConfig
source · pub struct NormalizedBwConfig {
pub mean: Option<Bandwidth>,
pub std_dev: Option<Bandwidth>,
pub upper_bound: Option<Bandwidth>,
pub lower_bound: Option<Bandwidth>,
pub duration: Option<Duration>,
pub step: Option<Duration>,
pub seed: Option<u64>,
}Expand description
The configuration struct for NormalizedBw.
See NormalizedBw for more details.
Fields§
§mean: Option<Bandwidth>§std_dev: Option<Bandwidth>§upper_bound: Option<Bandwidth>§lower_bound: Option<Bandwidth>§duration: Option<Duration>§step: Option<Duration>§seed: Option<u64>Implementations§
source§impl NormalizedBwConfig
impl NormalizedBwConfig
pub fn new() -> Self
pub fn mean(self, mean: Bandwidth) -> Self
pub fn std_dev(self, std_dev: Bandwidth) -> Self
pub fn upper_bound(self, upper_bound: Bandwidth) -> Self
pub fn lower_bound(self, lower_bound: Bandwidth) -> Self
pub fn duration(self, duration: Duration) -> Self
pub fn step(self, step: Duration) -> Self
pub fn seed(self, seed: u64) -> Self
pub fn build(self) -> NormalizedBw
Trait Implementations§
source§impl BwTraceConfig for NormalizedBwConfig
impl BwTraceConfig for NormalizedBwConfig
fn into_model(self: Box<NormalizedBwConfig>) -> Box<dyn BwTrace>
source§impl Clone for NormalizedBwConfig
impl Clone for NormalizedBwConfig
source§fn clone(&self) -> NormalizedBwConfig
fn clone(&self) -> NormalizedBwConfig
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 moresource§impl Debug for NormalizedBwConfig
impl Debug for NormalizedBwConfig
source§impl Default for NormalizedBwConfig
impl Default for NormalizedBwConfig
source§fn default() -> NormalizedBwConfig
fn default() -> NormalizedBwConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NormalizedBwConfigwhere
NormalizedBwConfig: Default,
impl<'de> Deserialize<'de> for NormalizedBwConfigwhere
NormalizedBwConfig: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NormalizedBwConfig
impl Send for NormalizedBwConfig
impl Sync for NormalizedBwConfig
impl Unpin for NormalizedBwConfig
impl UnwindSafe for NormalizedBwConfig
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