#[non_exhaustive]pub struct Policer {
pub name: String,
pub bandwidth_limit: Option<String>,
pub bandwidth_percent: Option<String>,
pub burst_size_limit: Option<String>,
pub discard: bool,
pub forwarding_class: Option<String>,
pub loss_priority: Option<String>,
}Expand description
A policer <name>.
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.name: String§bandwidth_limit: Option<String>§bandwidth_percent: Option<String>§burst_size_limit: Option<String>§discard: boolthen discard.
forwarding_class: Option<String>§loss_priority: Option<String>Trait Implementations§
impl Eq for Policer
impl StructuralPartialEq for Policer
Auto Trait Implementations§
impl Forget for Policer
impl Freeze for Policer
impl Move for Policer
impl RefUnwindSafe for Policer
impl Send for Policer
impl Sync for Policer
impl Unpin for Policer
impl UnsafeUnpin for Policer
impl UnwindSafe for Policer
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