Struct netem_trace::model::loss::StaticLossConfig
source · pub struct StaticLossConfig {
pub loss: Option<LossPattern>,
pub duration: Option<Duration>,
}Expand description
The configuration struct for StaticLoss.
See StaticLoss for more details.
Fields§
§loss: Option<LossPattern>§duration: Option<Duration>Implementations§
Trait Implementations§
source§impl Clone for StaticLossConfig
impl Clone for StaticLossConfig
source§fn clone(&self) -> StaticLossConfig
fn clone(&self) -> StaticLossConfig
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 StaticLossConfig
impl Debug for StaticLossConfig
source§impl Default for StaticLossConfig
impl Default for StaticLossConfig
source§fn default() -> StaticLossConfig
fn default() -> StaticLossConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StaticLossConfigwhere
StaticLossConfig: Default,
impl<'de> Deserialize<'de> for StaticLossConfigwhere
StaticLossConfig: 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
source§impl LossTraceConfig for StaticLossConfig
impl LossTraceConfig for StaticLossConfig
fn into_model(self: Box<StaticLossConfig>) -> Box<dyn LossTrace>
Auto Trait Implementations§
impl RefUnwindSafe for StaticLossConfig
impl Send for StaticLossConfig
impl Sync for StaticLossConfig
impl Unpin for StaticLossConfig
impl UnwindSafe for StaticLossConfig
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