Struct cgroups_rs::net_cls::NetClsController [−][src]
pub struct NetClsController { /* fields omitted */ }
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
Constructs a new NetClsController
with root
serving as the root of the control group.
Set the network class id of the outgoing packets of the control group’s tasks.
Trait Implementations
Performs the conversion.
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
Mutably borrows from an owned value. Read more
Apply a set of resources to the Controller, invoking its internal functions to pass the kernel the information.
Attach a task to this controller by thread group id.