pub enum Effect {
Send(SendRequest),
Cancel {
sendid: String,
},
Invoke(InvokeRequest),
CancelInvoke {
invokeid: String,
},
Forward {
invokeid: String,
event: Event,
},
Log {
label: Option<String>,
value: Option<Value>,
},
SessionDone {
data: Value,
cancelled: bool,
},
}Expand description
An interaction with the outside world, returned by the step instead of performed.
Variants§
Send(SendRequest)
Deliver an event, possibly after a delay.
Cancel
Cancel a pending delayed send.
Invoke(InvokeRequest)
Start an invocation.
CancelInvoke
Cancel an invocation whose state was exited. From then on the host must not deliver events from that invocation; events it already queued are still delivered.
Forward
Forward an external event to an autoforward invocation.
Log
<log>.
SessionDone
The session ended.
Trait Implementations§
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Forget for Effect
impl Freeze for Effect
impl Move for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
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