[][src]Struct libcgroup_rs::manipulation::CGroupBuilder

pub struct CGroupBuilder<'a> { /* fields omitted */ }

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]

pub fn get_controller(
    &self,
    ctrl_name: &str
) -> Result<CGroupControllerBuilder, Error>
[src]

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.