pub struct EnforcedLimits {
pub timeout: bool,
pub memory: bool,
pub network_isolation: bool,
pub filesystem_isolation: bool,
pub environment_isolation: bool,
}Available on crate feature
sandbox only.Expand description
Describes which resource limits a backend enforces.
Backends are honest about what they enforce. For example,
ProcessBackend enforces timeout and environment isolation
but not memory or network isolation.
Fields§
§timeout: boolWhether the backend enforces execution timeout.
memory: boolWhether the backend enforces memory limits.
network_isolation: boolWhether the backend isolates network access.
filesystem_isolation: boolWhether the backend isolates filesystem access.
environment_isolation: boolWhether the backend isolates environment variables.
Trait Implementations§
Source§impl Clone for EnforcedLimits
impl Clone for EnforcedLimits
Source§fn clone(&self) -> EnforcedLimits
fn clone(&self) -> EnforcedLimits
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 moreAuto Trait Implementations§
impl Freeze for EnforcedLimits
impl RefUnwindSafe for EnforcedLimits
impl Send for EnforcedLimits
impl Sync for EnforcedLimits
impl Unpin for EnforcedLimits
impl UnsafeUnpin for EnforcedLimits
impl UnwindSafe for EnforcedLimits
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