pub enum EffectKind {
Notify,
Navigate,
CodexOpen,
CommerceBuy,
PresenceEmit,
SetState,
GiveItem,
Despawn,
Spawn,
}Expand description
The effect vocabulary — the Behavior ABI’s Actions plus the declarative
interaction effects, as types. Constructing one is pure; only the
browser performs it. A behavior whose row lacks CommerceBuy cannot
spend a traveler’s gold — not “shouldn’t”: the verifier rejects it.
Variants§
Notify
CodexOpen
CommerceBuy
PresenceEmit
SetState
GiveItem
Despawn
Spawn
Conjure a new object into the world (a builtin mesh, placed + colored).
Trait Implementations§
Source§impl Clone for EffectKind
impl Clone for EffectKind
impl Copy for EffectKind
Source§impl Debug for EffectKind
impl Debug for EffectKind
Source§impl<'de> Deserialize<'de> for EffectKind
impl<'de> Deserialize<'de> for EffectKind
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 EffectKind
Source§impl Ord for EffectKind
impl Ord for EffectKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EffectKind
impl PartialEq for EffectKind
Source§impl PartialOrd for EffectKind
impl PartialOrd for EffectKind
Source§impl Serialize for EffectKind
impl Serialize for EffectKind
impl StructuralPartialEq for EffectKind
Auto Trait Implementations§
impl Freeze for EffectKind
impl RefUnwindSafe for EffectKind
impl Send for EffectKind
impl Sync for EffectKind
impl Unpin for EffectKind
impl UnsafeUnpin for EffectKind
impl UnwindSafe for EffectKind
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