Struct cgroups_rs::cgroup_builder::NetworkResourceBuilder
source · pub struct NetworkResourceBuilder { /* private fields */ }Expand description
A builder that configures the net_cls & net_prio controllers of a control group.
Implementations§
source§impl NetworkResourceBuilder
impl NetworkResourceBuilder
sourcepub fn class_id(self, class_id: u64) -> Self
pub fn class_id(self, class_id: u64) -> Self
See the similarly named function in the respective controller.
sourcepub fn priority(self, name: String, priority: u64) -> NetworkResourceBuilder
pub fn priority(self, name: String, priority: u64) -> NetworkResourceBuilder
Set the priority of the tasks when operating on a networking device defined by name to be
priority.
sourcepub fn done(self) -> CgroupBuilder
pub fn done(self) -> CgroupBuilder
Finish the construction of the network resources of a control group.
Auto Trait Implementations§
impl RefUnwindSafe for NetworkResourceBuilder
impl Send for NetworkResourceBuilder
impl Sync for NetworkResourceBuilder
impl Unpin for NetworkResourceBuilder
impl UnwindSafe for NetworkResourceBuilder
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