pub enum FlowSpecAction {
TrafficRateBytes {
asn: u16,
rate: f32,
},
TrafficRatePackets {
asn: u16,
rate: f32,
},
TrafficAction {
sample: bool,
terminal: bool,
},
TrafficMarking {
dscp: u8,
},
Redirect2Octet {
asn: u16,
value: u32,
},
RedirectIpv4 {
addr: Ipv4Addr,
value: u16,
},
Redirect4Octet {
asn: u32,
value: u16,
},
}Expand description
A traffic action decoded from a FlowSpec extended community.
Variants§
TrafficRateBytes
Traffic-rate (type 0x8006): rate=0.0 means drop.
TrafficRatePackets
Traffic-rate-packets (type 0x800c, RFC 8955 Appendix A).
TrafficAction
Traffic-action (type 0x8007): sample and/or terminal bits.
Fields
TrafficMarking
Traffic-marking (type 0x8009): set DSCP value.
Redirect2Octet
Redirect 2-octet AS (type 0x8008).
RedirectIpv4
Redirect IPv4 (type 0x8108, RFC 7674).
Redirect4Octet
Redirect 4-octet AS (type 0x8208, RFC 7674).
Trait Implementations§
Source§impl Clone for FlowSpecAction
impl Clone for FlowSpecAction
Source§fn clone(&self) -> FlowSpecAction
fn clone(&self) -> FlowSpecAction
Returns a duplicate of the value. Read more
1.0.0 · 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 FlowSpecAction
impl Debug for FlowSpecAction
Source§impl PartialEq for FlowSpecAction
impl PartialEq for FlowSpecAction
impl StructuralPartialEq for FlowSpecAction
Auto Trait Implementations§
impl Freeze for FlowSpecAction
impl RefUnwindSafe for FlowSpecAction
impl Send for FlowSpecAction
impl Sync for FlowSpecAction
impl Unpin for FlowSpecAction
impl UnsafeUnpin for FlowSpecAction
impl UnwindSafe for FlowSpecAction
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