pub struct StormControl {
pub broadcast_level: Option<f32>,
pub multicast_level: Option<f32>,
pub unicast_level: Option<f32>,
}Expand description
storm-control broadcast/multicast/unicast levels (percentage).
Fields§
§broadcast_level: Option<f32>§multicast_level: Option<f32>§unicast_level: Option<f32>Trait Implementations§
Source§impl Clone for StormControl
impl Clone for StormControl
Source§fn clone(&self) -> StormControl
fn clone(&self) -> StormControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StormControl
impl Debug for StormControl
Source§impl Default for StormControl
impl Default for StormControl
Source§fn default() -> StormControl
fn default() -> StormControl
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StormControl
impl<'de> Deserialize<'de> for StormControl
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StormControl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StormControl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StormControl
impl Serialize for StormControl
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for StormControl
impl RefUnwindSafe for StormControl
impl Send for StormControl
impl Sync for StormControl
impl Unpin for StormControl
impl UnsafeUnpin for StormControl
impl UnwindSafe for StormControl
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