pub enum ShapingStrategy {
None,
ConstantRate {
bytes_per_sec: u64,
},
SizeDistribution,
ConstantPacketRate {
packets_per_sec: u64,
},
ProtocolMimic,
}Expand description
Traffic shaping strategy
Variants§
None
No shaping (send immediately)
ConstantRate
Constant bitrate (add padding to match rate)
SizeDistribution
Packet size distribution matching
ConstantPacketRate
Constant packet rate with padding
ProtocolMimic
Mimic specific protocol
Trait Implementations§
Source§impl Clone for ShapingStrategy
impl Clone for ShapingStrategy
Source§fn clone(&self) -> ShapingStrategy
fn clone(&self) -> ShapingStrategy
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 ShapingStrategy
impl Debug for ShapingStrategy
Source§impl PartialEq for ShapingStrategy
impl PartialEq for ShapingStrategy
impl Copy for ShapingStrategy
impl Eq for ShapingStrategy
impl StructuralPartialEq for ShapingStrategy
Auto Trait Implementations§
impl Freeze for ShapingStrategy
impl RefUnwindSafe for ShapingStrategy
impl Send for ShapingStrategy
impl Sync for ShapingStrategy
impl Unpin for ShapingStrategy
impl UnsafeUnpin for ShapingStrategy
impl UnwindSafe for ShapingStrategy
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