pub struct HostEffectSupport {
pub supported: Vec<EffectKindTag>,
}Expand description
The host’s explicit declaration of which effect kinds it can execute (§7.3, DEC-8).
The kernel emits an effect only for a declared kind and fail-closes on the rest. Without this,
the same effect produces a different outcome per language — Rust’s spawn_workflow always
fails, Python handles memory effects only inside a host syscall, and the Node/WASM if/else-if
chains busy-wait on anything unhandled.
Fields§
§supported: Vec<EffectKindTag>Not skip_serializing_if: an empty declaration (“I can execute nothing”) must be visible
on the wire rather than indistinguishable from an omitted field.
Implementations§
Source§impl HostEffectSupport
impl HostEffectSupport
pub fn new(supported: impl IntoIterator<Item = EffectKindTag>) -> Self
pub fn supports(&self, kind: EffectKindTag) -> bool
Trait Implementations§
Source§impl Clone for HostEffectSupport
impl Clone for HostEffectSupport
Source§fn clone(&self) -> HostEffectSupport
fn clone(&self) -> HostEffectSupport
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 HostEffectSupport
impl Debug for HostEffectSupport
Source§impl Default for HostEffectSupport
impl Default for HostEffectSupport
Source§fn default() -> HostEffectSupport
fn default() -> HostEffectSupport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HostEffectSupport
impl<'de> Deserialize<'de> for HostEffectSupport
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
impl Eq for HostEffectSupport
Source§impl PartialEq for HostEffectSupport
impl PartialEq for HostEffectSupport
Source§impl Serialize for HostEffectSupport
impl Serialize for HostEffectSupport
impl StructuralPartialEq for HostEffectSupport
Auto Trait Implementations§
impl Freeze for HostEffectSupport
impl RefUnwindSafe for HostEffectSupport
impl Send for HostEffectSupport
impl Sync for HostEffectSupport
impl Unpin for HostEffectSupport
impl UnsafeUnpin for HostEffectSupport
impl UnwindSafe for HostEffectSupport
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