pub struct NetPrioController { /* private fields */ }
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§
Trait Implementations§
Source§impl Clone for NetPrioController
impl Clone for NetPrioController
Source§fn clone(&self) -> NetPrioController
fn clone(&self) -> NetPrioController
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NetPrioController
impl Debug for NetPrioController
Source§impl<'a> From<&'a Subsystem> for &'a NetPrioController
impl<'a> From<&'a Subsystem> for &'a NetPrioController
Source§fn from(sub: &'a Subsystem) -> &'a NetPrioController
fn from(sub: &'a Subsystem) -> &'a NetPrioController
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetPrioController
impl RefUnwindSafe for NetPrioController
impl Send for NetPrioController
impl Sync for NetPrioController
impl Unpin for NetPrioController
impl UnwindSafe for NetPrioController
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Controller for Twhere
T: ControllerInternal,
impl<T> Controller for Twhere
T: ControllerInternal,
Source§fn apply(&self, res: &Resources) -> Result<(), Error>
fn apply(&self, res: &Resources) -> Result<(), Error>
Apply a set of resources to the Controller, invoking its internal functions to pass the kernel the information.
Source§fn add_task_by_tgid(&self, pid: &CgroupPid) -> Result<(), Error>
fn add_task_by_tgid(&self, pid: &CgroupPid) -> Result<(), Error>
Attach a task to this controller by thread group id.