pub struct KernelResourceLimits {
pub max_memory_mb: u64,
pub max_cpu_seconds: u64,
}Expand description
Per-kernel resource limits; 0 disables one. Resource limits, not isolation.
Fields§
§max_memory_mb: u64RLIMIT_DATA in MiB for the kernel and, inherited, every process a cell spawns.
max_cpu_seconds: u64CPU time per cell.
Trait Implementations§
Source§impl Clone for KernelResourceLimits
impl Clone for KernelResourceLimits
impl Copy for KernelResourceLimits
Source§impl Debug for KernelResourceLimits
impl Debug for KernelResourceLimits
impl Eq for KernelResourceLimits
Source§impl PartialEq for KernelResourceLimits
impl PartialEq for KernelResourceLimits
impl StructuralPartialEq for KernelResourceLimits
Auto Trait Implementations§
impl Forget for KernelResourceLimits
impl Freeze for KernelResourceLimits
impl Move for KernelResourceLimits
impl RefUnwindSafe for KernelResourceLimits
impl Send for KernelResourceLimits
impl Sync for KernelResourceLimits
impl Unpin for KernelResourceLimits
impl UnsafeUnpin for KernelResourceLimits
impl UnwindSafe for KernelResourceLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.