pub struct ExternalEffect {
pub id: String,
pub source: ActorRef,
pub ty: String,
pub kind: EffectKind,
pub params: Option<Value>,
pub args: Option<Vec<Value>>,
pub event: Option<Value>,
pub reason: Option<String>,
pub exec: Option<EffectExec>,
}Expand description
External work for the host, with a stable id.
Fields§
§id: StringEmpty (and params of an emit None) only for the effects
crate::Actor handles as it receives them, which are never pending.
source: ActorRef§ty: String§kind: EffectKind§params: Option<Value>§args: Option<Vec<Value>>§event: Option<Value>§reason: Option<String>§exec: Option<EffectExec>The Rust implementation of a custom action, if the machine has one.
Implementations§
Trait Implementations§
Source§impl Clone for ExternalEffect
impl Clone for ExternalEffect
Auto Trait Implementations§
impl !RefUnwindSafe for ExternalEffect
impl !UnwindSafe for ExternalEffect
impl Forget for ExternalEffect
impl Freeze for ExternalEffectwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
*const ArcInner<dyn Fn() -> Result<(), String> + Send + Sync> is !null: Freeze,
PhantomData<ArcInner<dyn Fn() -> Result<(), String> + Send + Sync>>: Freeze,
impl Move for ExternalEffect
impl Send for ExternalEffect
impl Sync for ExternalEffect
impl Unpin for ExternalEffect
impl UnsafeUnpin for ExternalEffectwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
*const ArcInner<dyn Fn() -> Result<(), String> + Send + Sync> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn() -> Result<(), String> + Send + Sync>>: UnsafeUnpin,
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