#[non_exhaustive]pub struct ThreeColorPolicer {
pub name: String,
pub actions: Vec<String>,
pub filter_specific: bool,
pub logical_interface_policer: bool,
pub physical_interface_policer: bool,
pub shared_bandwidth_policer: bool,
pub single_rate: Option<ThreeColorRate>,
pub two_rate: Option<ThreeColorRate>,
}Expand description
A three-color-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§actions: Vec<String>The statements of action, e.g. "loss-priority high then discard".
filter_specific: bool§logical_interface_policer: bool§physical_interface_policer: bool§single_rate: Option<ThreeColorRate>§two_rate: Option<ThreeColorRate>Trait Implementations§
Source§impl Clone for ThreeColorPolicer
impl Clone for ThreeColorPolicer
Source§impl Debug for ThreeColorPolicer
impl Debug for ThreeColorPolicer
impl Eq for ThreeColorPolicer
Source§impl PartialEq for ThreeColorPolicer
impl PartialEq for ThreeColorPolicer
impl StructuralPartialEq for ThreeColorPolicer
Auto Trait Implementations§
impl Forget for ThreeColorPolicer
impl Freeze for ThreeColorPolicer
impl Move for ThreeColorPolicer
impl RefUnwindSafe for ThreeColorPolicer
impl Send for ThreeColorPolicerwhere
RawVecInner: Send,
impl Sync for ThreeColorPolicerwhere
RawVecInner: Sync,
impl Unpin for ThreeColorPolicer
impl UnsafeUnpin for ThreeColorPolicerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ThreeColorPolicerwhere
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