#[non_exhaustive]pub enum ResourceBudgetProfile {
Off,
Dev,
Untrusted,
}Expand description
Evaluator-side resource-budget presets.
These profiles cover limits the in-process evaluator can enforce today. Host/VM limits such as wall-clock time, process memory, Wasmtime fuel, and final-output bytes live at their respective host boundaries.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Off
Preserve historical behavior: no evaluator-side resource limit.
Dev
Developer guardrails for local runs.
Untrusted
Tighter guardrails for externally supplied source. This is not a VM security boundary; use a wasm engine for hard untrusted execution.
Trait Implementations§
Source§impl Clone for ResourceBudgetProfile
impl Clone for ResourceBudgetProfile
Source§fn clone(&self) -> ResourceBudgetProfile
fn clone(&self) -> ResourceBudgetProfile
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 moreimpl Copy for ResourceBudgetProfile
Source§impl Debug for ResourceBudgetProfile
impl Debug for ResourceBudgetProfile
Source§impl Default for ResourceBudgetProfile
impl Default for ResourceBudgetProfile
Source§fn default() -> ResourceBudgetProfile
fn default() -> ResourceBudgetProfile
Returns the “default value” for a type. Read more
impl Eq for ResourceBudgetProfile
Source§impl PartialEq for ResourceBudgetProfile
impl PartialEq for ResourceBudgetProfile
Source§fn eq(&self, other: &ResourceBudgetProfile) -> bool
fn eq(&self, other: &ResourceBudgetProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResourceBudgetProfile
Auto Trait Implementations§
impl Freeze for ResourceBudgetProfile
impl RefUnwindSafe for ResourceBudgetProfile
impl Send for ResourceBudgetProfile
impl Sync for ResourceBudgetProfile
impl Unpin for ResourceBudgetProfile
impl UnsafeUnpin for ResourceBudgetProfile
impl UnwindSafe for ResourceBudgetProfile
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