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 exlusive.
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.
Auto 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