Struct ssandbox::resource::CGroupLimitPolicy [−][src]
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]
fn clone(&self) -> CGroupLimitPolicy
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CGroupLimitPolicy
[src]
impl Default for CGroupLimitPolicy
[src]
fn default() -> CGroupLimitPolicy
[src]
Auto Trait Implementations
impl RefUnwindSafe for CGroupLimitPolicy
impl Send for CGroupLimitPolicy
impl Sync for CGroupLimitPolicy
impl Unpin for CGroupLimitPolicy
impl UnwindSafe for CGroupLimitPolicy
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,