pub struct Input {
pub env: Environment,
pub kind: InputKind,
pub sessions: Option<Vec<String>>,
}Expand description
One input to step: an external event or a cancel request, plus its environment.
Fields§
§env: EnvironmentTime and seed while processing this input.
kind: InputKindThe request.
sessions: Option<Vec<String>>The session identifiers the SCXML Event I/O Processor can deliver to while this input
is processed, when the host knows them. With a list, an immediate <send> to
#_scxml_<id> naming no listed session queues error.communication (with the send id)
on the internal queue at once, as W3C SCXML 6.2.4 requires (IRP test 496); with None
every such target goes to the host, which reports delivery failures back as an
error.communication input.
Implementations§
Source§impl Input
impl Input
Sourcepub fn event(event: Event, env: Environment) -> Self
pub fn event(event: Event, env: Environment) -> Self
An external event.
Sourcepub fn cancel(env: Environment) -> Self
pub fn cancel(env: Environment) -> Self
A cancel request.
Trait Implementations§
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Forget for Input
impl Freeze for Input
impl Move for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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