pub struct WasmtimeExecutionLimits { /* private fields */ }Expand description
Execution limits applied to each Wasmtime guest invocation.
Implementations§
Source§impl WasmtimeExecutionLimits
impl WasmtimeExecutionLimits
Sourcepub const fn cancellation_epoch_deadline(&self) -> u64
pub const fn cancellation_epoch_deadline(&self) -> u64
Epoch ticks after which a cancellation increment interrupts the store.
Sourcepub const fn cancellation_poll_interval(&self) -> Duration
pub const fn cancellation_poll_interval(&self) -> Duration
Poll interval used by the synchronous cancellation watcher.
Sourcepub const fn with_cancellation_epoch_deadline(self, ticks: u64) -> Self
pub const fn with_cancellation_epoch_deadline(self, ticks: u64) -> Self
Return limits with a different epoch deadline.
Sourcepub const fn with_cancellation_poll_interval(self, interval: Duration) -> Self
pub const fn with_cancellation_poll_interval(self, interval: Duration) -> Self
Return limits with a different cancellation poll interval.
Trait Implementations§
Source§impl Clone for WasmtimeExecutionLimits
impl Clone for WasmtimeExecutionLimits
Source§fn clone(&self) -> WasmtimeExecutionLimits
fn clone(&self) -> WasmtimeExecutionLimits
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 WasmtimeExecutionLimits
impl Debug for WasmtimeExecutionLimits
Source§impl Default for WasmtimeExecutionLimits
impl Default for WasmtimeExecutionLimits
Source§impl PartialEq for WasmtimeExecutionLimits
impl PartialEq for WasmtimeExecutionLimits
Source§fn eq(&self, other: &WasmtimeExecutionLimits) -> bool
fn eq(&self, other: &WasmtimeExecutionLimits) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WasmtimeExecutionLimits
impl Eq for WasmtimeExecutionLimits
impl StructuralPartialEq for WasmtimeExecutionLimits
Auto Trait Implementations§
impl Freeze for WasmtimeExecutionLimits
impl RefUnwindSafe for WasmtimeExecutionLimits
impl Send for WasmtimeExecutionLimits
impl Sync for WasmtimeExecutionLimits
impl Unpin for WasmtimeExecutionLimits
impl UnsafeUnpin for WasmtimeExecutionLimits
impl UnwindSafe for WasmtimeExecutionLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more