pub enum ExecutionMode {
Inline,
Sandboxed,
}Expand description
Where a handler executes relative to the Soma host process.
Variants§
Inline
Executes on the host (in-process, or a local runtime the host spawns with host-level access).
Sandboxed
Executes inside an isolation boundary (e.g. a WASM sandbox).
Implementations§
Source§impl ExecutionMode
impl ExecutionMode
Sourcepub fn for_provider_kind(kind: &str) -> Self
pub fn for_provider_kind(kind: &str) -> Self
Execution mode implied by a provider manifest kind: only wasm
handlers run behind an isolation boundary today.
Trait Implementations§
Source§impl Clone for ExecutionMode
impl Clone for ExecutionMode
Source§fn clone(&self) -> ExecutionMode
fn clone(&self) -> ExecutionMode
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 ExecutionMode
impl Debug for ExecutionMode
Source§impl PartialEq for ExecutionMode
impl PartialEq for ExecutionMode
Source§fn eq(&self, other: &ExecutionMode) -> bool
fn eq(&self, other: &ExecutionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ExecutionMode
impl Eq for ExecutionMode
impl StructuralPartialEq for ExecutionMode
Auto Trait Implementations§
impl Freeze for ExecutionMode
impl RefUnwindSafe for ExecutionMode
impl Send for ExecutionMode
impl Sync for ExecutionMode
impl Unpin for ExecutionMode
impl UnsafeUnpin for ExecutionMode
impl UnwindSafe for ExecutionMode
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.