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