Struct cgroups::cgroup_builder::NetworkResourceBuilder
source · pub struct NetworkResourceBuilder<'a> { /* private fields */ }
Expand description
A builder that configures the net_cls & net_prio controllers of a control group.
Implementations
sourceimpl<'a> NetworkResourceBuilder<'a>
impl<'a> NetworkResourceBuilder<'a>
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<'a>
pub fn priority(self, name: String, priority: u64) -> NetworkResourceBuilder<'a>
Set the priority of the tasks when operating on a networking device defined by name
to be
priority
.
sourcepub fn done(self) -> CgroupBuilder<'a>
pub fn done(self) -> CgroupBuilder<'a>
Finish the construction of the network resources of a control group.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for NetworkResourceBuilder<'a>
impl<'a> !Send for NetworkResourceBuilder<'a>
impl<'a> !Sync for NetworkResourceBuilder<'a>
impl<'a> Unpin for NetworkResourceBuilder<'a>
impl<'a> !UnwindSafe for NetworkResourceBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more