pub struct TrafficFilterNewRequest { /* private fields */ }
Implementations§
Source§impl TrafficFilterNewRequest
impl TrafficFilterNewRequest
Sourcepub fn index(self, index: i32) -> Self
pub fn index(self, index: i32) -> Self
Set interface index.
Equivalent to dev STRING
, dev and block are mutually exlusive.
Sourcepub fn parent(self, parent: u32) -> Self
pub fn parent(self, parent: u32) -> Self
Set parent.
Equivalent to [ root | ingress | egress | parent CLASSID ]
command args. They are mutually exclusive.
Sourcepub fn priority(self, priority: u16) -> Self
pub fn priority(self, priority: u16) -> Self
Set priority.
Equivalent to priority PRIO
or pref PRIO
.
Sourcepub fn protocol(self, protocol: u16) -> Self
pub fn protocol(self, protocol: u16) -> Self
Set protocol.
Equivalent to protocol PROT
.
Default: ETH_P_ALL 0x0003, see llproto_names at iproute2/lib/ll_proto.c.
Sourcepub fn u32(self, options: &[TcFilterU32Option]) -> Result<Self, Error>
pub fn u32(self, options: &[TcFilterU32Option]) -> Result<Self, Error>
The 32bit filter allows to match arbitrary bitfields in the packet.
Equivalent to tc filter ... u32
.
Trait Implementations§
Source§impl Clone for TrafficFilterNewRequest
impl Clone for TrafficFilterNewRequest
Source§fn clone(&self) -> TrafficFilterNewRequest
fn clone(&self) -> TrafficFilterNewRequest
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 moreAuto Trait Implementations§
impl Freeze for TrafficFilterNewRequest
impl !RefUnwindSafe for TrafficFilterNewRequest
impl Send for TrafficFilterNewRequest
impl Sync for TrafficFilterNewRequest
impl Unpin for TrafficFilterNewRequest
impl !UnwindSafe for TrafficFilterNewRequest
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