Struct cgroups::net_cls::NetClsController
source · pub struct NetClsController { /* private fields */ }
Expand description
A controller that allows controlling the net_cls
subsystem of a Cgroup.
In esssence, using the net_cls
controller, one can attach a custom class to the network
packets emitted by the control group’s tasks. This can then later be used in iptables to have
custom firewall rules, QoS, etc.
Implementations
Trait Implementations
sourceimpl Clone for NetClsController
impl Clone for NetClsController
sourcefn clone(&self) -> NetClsController
fn clone(&self) -> NetClsController
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NetClsController
impl Debug for NetClsController
sourceimpl<'a> From<&'a Subsystem> for &'a NetClsController
impl<'a> From<&'a Subsystem> for &'a NetClsController
sourcefn from(sub: &'a Subsystem) -> &'a NetClsController
fn from(sub: &'a Subsystem) -> &'a NetClsController
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for NetClsController
impl Send for NetClsController
impl Sync for NetClsController
impl Unpin for NetClsController
impl UnwindSafe for NetClsController
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more