pub struct NetworkShapingConfig {
pub enabled: bool,
pub bandwidth_limit_bps: u64,
pub packet_loss_percent: f64,
pub max_connections: u32,
}
Expand description
Network shaping configuration
Fields§
§enabled: bool
§bandwidth_limit_bps: u64
§packet_loss_percent: f64
§max_connections: u32
Trait Implementations§
Source§impl Clone for NetworkShapingConfig
impl Clone for NetworkShapingConfig
Source§fn clone(&self) -> NetworkShapingConfig
fn clone(&self) -> NetworkShapingConfig
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 NetworkShapingConfig
impl Debug for NetworkShapingConfig
Source§impl<'de> Deserialize<'de> for NetworkShapingConfig
impl<'de> Deserialize<'de> for NetworkShapingConfig
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 Freeze for NetworkShapingConfig
impl RefUnwindSafe for NetworkShapingConfig
impl Send for NetworkShapingConfig
impl Sync for NetworkShapingConfig
impl Unpin for NetworkShapingConfig
impl UnwindSafe for NetworkShapingConfig
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