pub struct Impairment {
pub delay: Duration,
pub loss_every: Option<u64>,
pub reorder_every: Option<u64>,
pub reorder_delay: Duration,
}Expand description
Deterministic periodic impairment; defaults disable all impairment.
Some(0) is invalid. Delay is applied to every packet; reorder_delay is
additionally applied to every reorder_every-th admitted packet. Loss and
reorder selections may overlap. Periods are global to this router, not flows.
Fields§
§delay: Duration§loss_every: Option<u64>§reorder_every: Option<u64>§reorder_delay: DurationTrait Implementations§
Source§impl Clone for Impairment
impl Clone for Impairment
Source§fn clone(&self) -> Impairment
fn clone(&self) -> Impairment
Returns a duplicate 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 Impairment
impl Debug for Impairment
Source§impl Default for Impairment
impl Default for Impairment
Source§fn default() -> Impairment
fn default() -> Impairment
Returns the “default value” for a type. Read more
Source§impl PartialEq for Impairment
impl PartialEq for Impairment
impl Copy for Impairment
impl Eq for Impairment
impl StructuralPartialEq for Impairment
Auto Trait Implementations§
impl Freeze for Impairment
impl RefUnwindSafe for Impairment
impl Send for Impairment
impl Sync for Impairment
impl Unpin for Impairment
impl UnwindSafe for Impairment
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