Skip to main content

FilterActions

Struct FilterActions 

Source
#[non_exhaustive]
pub struct FilterActions {
Show 42 fields pub action: Option<FilterAction>, pub reject_message: Option<String>, pub skip: bool, pub service: bool, pub exclude_accounting: bool, pub bgp_output_queue_priority: Option<String>, pub dont_fragment: Option<String>, pub dscp: Option<String>, pub enhanced_hierarchical_policer: bool, pub force_premium: bool, pub hierarchical_policer: Option<String>, pub ipsec_sa: Option<String>, pub load_balance: Option<String>, pub logical_system: Option<String>, pub next_hop_group: Option<String>, pub next_interface: Option<String>, pub next_interface_routing_instance: Option<String>, pub next_ip: Option<String>, pub next_ip6: Option<String>, pub packet_mode: bool, pub policy_map: Option<String>, pub port_mirror: bool, pub port_mirror_instance: Option<String>, pub prefix_action: Option<String>, pub routing_instance: Option<String>, pub sample: bool, pub service_accounting: bool, pub service_filter_hit: bool, pub slice: Option<String>, pub source_class: Option<String>, pub destination_class: Option<String>, pub three_color_policer: Option<String>, pub topology: Option<String>, pub traffic_class: Option<String>, pub decapsulate: Option<String>, pub encapsulate: Option<String>, pub count: Option<String>, pub policer: Option<String>, pub forwarding_class: Option<String>, pub loss_priority: Option<String>, pub log: bool, pub syslog: bool,
}
Expand description

The actions of a term’s then statement. Actions not listed here are ignored.

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.
§action: Option<FilterAction>§reject_message: Option<String>

The message type after reject, e.g. "tcp-reset".

§skip: bool

skip: in a service filter, bypass the service.

§service: bool

service: in a service filter, send the packet to the service.

§exclude_accounting: bool§bgp_output_queue_priority: Option<String>§dont_fragment: Option<String>

"set" or "clear".

§dscp: Option<String>§enhanced_hierarchical_policer: bool§force_premium: bool§hierarchical_policer: Option<String>

The name after hierarchical-policer, if given.

§ipsec_sa: Option<String>§load_balance: Option<String>§logical_system: Option<String>§next_hop_group: Option<String>§next_interface: Option<String>

The interface of next-interface, written inline or as a block.

§next_interface_routing_instance: Option<String>

The routing-instance inside a next-interface block.

§next_ip: Option<String>§next_ip6: Option<String>§packet_mode: bool§policy_map: Option<String>§port_mirror: bool

port-mirror or port-mirror-instance.

§port_mirror_instance: Option<String>§prefix_action: Option<String>§routing_instance: Option<String>§sample: bool§service_accounting: bool§service_filter_hit: bool§slice: Option<String>§source_class: Option<String>§destination_class: Option<String>§three_color_policer: Option<String>

Everything after three-color-policer, e.g. "single-rate SRTCM1".

§topology: Option<String>§traffic_class: Option<String>§decapsulate: Option<String>

Everything after decapsulate, e.g. "gre routing-instance VRF-A".

§encapsulate: Option<String>

Everything after encapsulate, i.e. the template name.

§count: Option<String>

Counter name from count.

§policer: Option<String>§forwarding_class: Option<String>§loss_priority: Option<String>§log: bool§syslog: bool

Trait Implementations§

Source§

impl Clone for FilterActions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FilterActions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FilterActions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for FilterActions

Source§

impl PartialEq for FilterActions

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FilterActions

Auto Trait Implementations§

§

impl Forget for FilterActions

§

impl Freeze for FilterActions
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze,

§

impl Move for FilterActions

§

impl RefUnwindSafe for FilterActions

§

impl Send for FilterActions
where RawVecInner: Send,

§

impl Sync for FilterActions
where RawVecInner: Sync,

§

impl Unpin for FilterActions
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for FilterActions

§

impl UnwindSafe for FilterActions
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.