Struct netem_trace::model::bw::BoundedNormalizedBwConfig
source · pub struct BoundedNormalizedBwConfig {
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 BoundedNormalizedBw.
See BoundedNormalizedBw 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 BoundedNormalizedBwConfig
impl BoundedNormalizedBwConfig
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) -> BoundedNormalizedBw
Trait Implementations§
source§impl BwTraceConfig for BoundedNormalizedBwConfig
impl BwTraceConfig for BoundedNormalizedBwConfig
fn into_model(self: Box<BoundedNormalizedBwConfig>) -> Box<dyn BwTrace>
source§impl Clone for BoundedNormalizedBwConfig
impl Clone for BoundedNormalizedBwConfig
source§fn clone(&self) -> BoundedNormalizedBwConfig
fn clone(&self) -> BoundedNormalizedBwConfig
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 BoundedNormalizedBwConfig
impl Debug for BoundedNormalizedBwConfig
source§impl Default for BoundedNormalizedBwConfig
impl Default for BoundedNormalizedBwConfig
source§fn default() -> BoundedNormalizedBwConfig
fn default() -> BoundedNormalizedBwConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BoundedNormalizedBwConfigwhere
BoundedNormalizedBwConfig: Default,
impl<'de> Deserialize<'de> for BoundedNormalizedBwConfigwhere BoundedNormalizedBwConfig: 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