pub struct LimitsSection {
pub memory: Option<String>,
pub processes: Option<u32>,
pub open_files: Option<u32>,
pub cpu: Option<u8>,
pub disk: Option<String>,
pub gpu_devices: Option<Vec<u32>>,
pub cpu_cores: Option<Vec<u32>>,
pub num_cpus: Option<u32>,
}Fields§
§memory: Option<String>ByteSize string, e.g. "512M" (suffixes K/M/G only; IEC MiB/GiB
not yet supported). Maps to Sandbox::max_memory.
processes: Option<u32>§open_files: Option<u32>§cpu: Option<u8>CPU cap as a percentage (0–100). Maps to Sandbox::max_cpu.
disk: Option<String>ByteSize string, e.g. "256M" (suffixes K/M/G only; IEC MiB/GiB
not yet supported). Maps to Sandbox::max_disk.
gpu_devices: Option<Vec<u32>>§cpu_cores: Option<Vec<u32>>§num_cpus: Option<u32>Trait Implementations§
Source§impl Clone for LimitsSection
impl Clone for LimitsSection
Source§fn clone(&self) -> LimitsSection
fn clone(&self) -> LimitsSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LimitsSection
impl Debug for LimitsSection
Source§impl Default for LimitsSection
impl Default for LimitsSection
Source§fn default() -> LimitsSection
fn default() -> LimitsSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LimitsSectionwhere
LimitsSection: Default,
impl<'de> Deserialize<'de> for LimitsSectionwhere
LimitsSection: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LimitsSection
impl PartialEq for LimitsSection
Source§fn eq(&self, other: &LimitsSection) -> bool
fn eq(&self, other: &LimitsSection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LimitsSection
Auto Trait Implementations§
impl Freeze for LimitsSection
impl RefUnwindSafe for LimitsSection
impl Send for LimitsSection
impl Sync for LimitsSection
impl Unpin for LimitsSection
impl UnsafeUnpin for LimitsSection
impl UnwindSafe for LimitsSection
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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