Struct cgroups_rs::cgroup_builder::PidResourceBuilder
source · pub struct PidResourceBuilder { /* private fields */ }Expand description
A builder that configures the pid controller of a control group.
Implementations§
source§impl PidResourceBuilder
impl PidResourceBuilder
sourcepub fn maximum_number_of_processes(
self,
maximum_number_of_processes: MaxValue
) -> Self
pub fn maximum_number_of_processes( self, maximum_number_of_processes: MaxValue ) -> Self
See the similarly named function in the respective controller.
sourcepub fn done(self) -> CgroupBuilder
pub fn done(self) -> CgroupBuilder
Finish the construction of the pid resources of a control group.
Auto Trait Implementations§
impl RefUnwindSafe for PidResourceBuilder
impl Send for PidResourceBuilder
impl Sync for PidResourceBuilder
impl Unpin for PidResourceBuilder
impl UnwindSafe for PidResourceBuilder
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