[−][src]Struct libcgroup_rs::manipulation::CGroupBuilder
Implementations
impl<'a> CGroupBuilder<'a>
[src]
pub fn new(name: &'a str) -> Result<Self, Error>
[src]
pub fn is_null(&self) -> bool
[src]
pub fn add_controller(
&self,
ctrl_name: &str
) -> Result<CGroupControllerBuilder, Error>
[src]
&self,
ctrl_name: &str
) -> Result<CGroupControllerBuilder, Error>
pub fn get_controller(
&self,
ctrl_name: &str
) -> Result<CGroupControllerBuilder, Error>
[src]
&self,
ctrl_name: &str
) -> Result<CGroupControllerBuilder, Error>
pub fn free(&self)
[src]
pub fn free_controllers(&self)
[src]
pub fn create(&self, ignore_ownership: i32) -> Result<(), Error>
[src]
pub fn create_from_parent(&self, ignore_ownership: i32) -> Result<(), Error>
[src]
pub fn modify(&self) -> Result<(), Error>
[src]
pub fn delete(&self, ignore_migration: i32) -> Result<(), Error>
[src]
pub fn delete_ext(&self, flags: i32) -> Result<(), Error>
[src]
pub fn set_uid_pid(
&self,
tasks_uid: u32,
tasks_gid: u32,
ctrl_uid: u32,
ctrl_gid: u32
) -> Result<(), Error>
[src]
&self,
tasks_uid: u32,
tasks_gid: u32,
ctrl_uid: u32,
ctrl_gid: u32
) -> Result<(), Error>
pub fn get_uid_pid(&self) -> Result<(u32, u32, u32, u32), Error>
[src]
pub fn attach_task(&self) -> Result<(), Error>
[src]
pub fn attach_task_pid(&self, pid: i32) -> Result<(), Error>
[src]
pub fn attach_task_shell(&self) -> Result<(), Error>
[src]
Trait Implementations
impl<'a> Clone for CGroupBuilder<'a>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
[src]
impl<'a> Debug for CGroupBuilder<'a>
[src]
impl<'a> PartialEq<CGroupBuilder<'a>> for CGroupBuilder<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for CGroupBuilder<'a>
impl<'a> !Send for CGroupBuilder<'a>
impl<'a> !Sync for CGroupBuilder<'a>
impl<'a> Unpin for CGroupBuilder<'a>
impl<'a> UnwindSafe for CGroupBuilder<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,