Struct rtnetlink::TrafficFilterNewRequest
source · 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
.
Auto Trait Implementations§
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