#[non_exhaustive]pub struct ThreeColorRate {
pub color_aware: Option<bool>,
pub committed_information_rate: Option<String>,
pub committed_burst_size: Option<String>,
pub excess_burst_size: Option<String>,
pub peak_information_rate: Option<String>,
pub peak_burst_size: Option<String>,
}Expand description
The single-rate or two-rate settings of a three-color policer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.color_aware: Option<bool>Some(true) for color-aware, Some(false) for color-blind.
committed_information_rate: Option<String>§committed_burst_size: Option<String>§excess_burst_size: Option<String>Only single-rate.
peak_information_rate: Option<String>Only two-rate.
peak_burst_size: Option<String>Only two-rate.
Trait Implementations§
Source§impl Clone for ThreeColorRate
impl Clone for ThreeColorRate
Source§impl Debug for ThreeColorRate
impl Debug for ThreeColorRate
Source§impl Default for ThreeColorRate
impl Default for ThreeColorRate
impl Eq for ThreeColorRate
Source§impl PartialEq for ThreeColorRate
impl PartialEq for ThreeColorRate
impl StructuralPartialEq for ThreeColorRate
Auto Trait Implementations§
impl Forget for ThreeColorRate
impl Freeze for ThreeColorRate
impl Move for ThreeColorRate
impl RefUnwindSafe for ThreeColorRate
impl Send for ThreeColorRatewhere
RawVecInner: Send,
impl Sync for ThreeColorRatewhere
RawVecInner: Sync,
impl Unpin for ThreeColorRate
impl UnsafeUnpin for ThreeColorRate
impl UnwindSafe for ThreeColorRatewhere
RawVecInner: UnwindSafe,
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