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 Freeze for NetworkResourceBuilder
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