Struct cgroups_rs::net_prio::NetPrioController [−][src]
pub struct NetPrioController { /* fields omitted */ }
Expand description
A controller that allows controlling the net_prio
subsystem of a Cgroup.
In essence, using net_prio
one can set the priority of the packets emitted from the control
group’s tasks. This can then be used to have QoS restrictions on certain control groups and
thus, prioritizing certain tasks.
Implementations
Constructs a new NetPrioController
with root
serving as the root of the control group.
A map of priorities for each network interface.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for NetPrioController
impl Send for NetPrioController
impl Sync for NetPrioController
impl Unpin for NetPrioController
impl UnwindSafe for NetPrioController
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.