Struct ssandbox::resource::CGroupLimitPolicy[][src]

pub struct CGroupLimitPolicy { /* fields omitted */ }

Implementations

impl CGroupLimitPolicy[src]

pub fn set_time_limit(&mut self, value: u64) -> &mut Self[src]

pub fn set_memory_limit(&mut self, value: i64) -> &mut Self[src]

pub fn set_fork_limit(&mut self, value: u32) -> &mut Self[src]

pub fn set_cpu_limit(&mut self, value: i64) -> &mut Self[src]

pub fn clear_time_limit(&mut self) -> &mut Self[src]

pub fn clear_memory_limit(&mut self) -> &mut Self[src]

pub fn clear_fork_limit(&mut self) -> &mut Self[src]

pub fn clear_cpu_limit(&mut self) -> &mut Self[src]

pub fn apply(&self, uid: u64, pid: Pid) -> Result<(), Box<dyn Error>>[src]

pub fn freeze(&self, uid: u64) -> Result<(), Box<dyn Error>>[src]

pub fn thaw(&self, uid: u64) -> Result<(), Box<dyn Error>>[src]

pub fn delete(&self, uid: u64) -> Result<(), Box<dyn Error>>[src]

Trait Implementations

impl Clone for CGroupLimitPolicy[src]

impl Debug for CGroupLimitPolicy[src]

impl Default for CGroupLimitPolicy[src]

Auto Trait Implementations

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,