pub struct InvocationLimits {
pub wall_ms: Option<u64>,
pub heap_mb: Option<u64>,
pub cpu_ms: Option<u64>,
}Expand description
Execution budget configuration derived from the descriptor.
Fields§
§wall_ms: Option<u64>Maximum wall-clock time in milliseconds.
heap_mb: Option<u64>Maximum heap usage in MiB as reported by V8.
cpu_ms: Option<u64>Maximum CPU time in milliseconds (per-thread).
Implementations§
Source§impl InvocationLimits
impl InvocationLimits
Sourcepub fn merged_with(
&self,
override_limits: Option<&InvocationLimits>,
) -> InvocationLimits
pub fn merged_with( &self, override_limits: Option<&InvocationLimits>, ) -> InvocationLimits
Merge the descriptor limits with an optional override, picking the tighter budget.
Trait Implementations§
Source§impl Clone for InvocationLimits
impl Clone for InvocationLimits
Source§fn clone(&self) -> InvocationLimits
fn clone(&self) -> InvocationLimits
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 InvocationLimits
impl Debug for InvocationLimits
Source§impl Default for InvocationLimits
impl Default for InvocationLimits
Source§fn default() -> InvocationLimits
fn default() -> InvocationLimits
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InvocationLimits
impl<'de> Deserialize<'de> for InvocationLimits
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 InvocationLimits
impl RefUnwindSafe for InvocationLimits
impl Send for InvocationLimits
impl Sync for InvocationLimits
impl Unpin for InvocationLimits
impl UnwindSafe for InvocationLimits
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