pub enum ThrottleMode {
Unthrottled,
Latency(Duration),
Blackhole,
}Variants§
Unthrottled
Pass through unchanged.
Latency(Duration)
Inject this many ms of latency on every PDU.
Blackhole
Drop every PDU silently (used for partition simulation).
Trait Implementations§
Source§impl Clone for ThrottleMode
impl Clone for ThrottleMode
Source§fn clone(&self) -> ThrottleMode
fn clone(&self) -> ThrottleMode
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 ThrottleMode
impl Debug for ThrottleMode
impl Copy for ThrottleMode
Auto Trait Implementations§
impl Freeze for ThrottleMode
impl RefUnwindSafe for ThrottleMode
impl Send for ThrottleMode
impl Sync for ThrottleMode
impl Unpin for ThrottleMode
impl UnsafeUnpin for ThrottleMode
impl UnwindSafe for ThrottleMode
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