pub struct SandboxLimits {
pub memory_mb: u32,
pub cpu_cores: f32,
pub disk_mb: u32,
pub network_enabled: bool,
pub execution_timeout_ms: u64,
}Expand description
Sandbox resource limits
Fields§
§memory_mb: u32§cpu_cores: f32§disk_mb: u32§network_enabled: bool§execution_timeout_ms: u64Trait Implementations§
Source§impl Clone for SandboxLimits
impl Clone for SandboxLimits
Source§fn clone(&self) -> SandboxLimits
fn clone(&self) -> SandboxLimits
Returns a duplicate of the value. Read more
1.0.0 · 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 SandboxLimits
impl Debug for SandboxLimits
Source§impl Default for SandboxLimits
impl Default for SandboxLimits
Source§impl<'de> Deserialize<'de> for SandboxLimits
impl<'de> Deserialize<'de> for SandboxLimits
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
Auto Trait Implementations§
impl Freeze for SandboxLimits
impl RefUnwindSafe for SandboxLimits
impl Send for SandboxLimits
impl Sync for SandboxLimits
impl Unpin for SandboxLimits
impl UnsafeUnpin for SandboxLimits
impl UnwindSafe for SandboxLimits
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