pub struct Input { /* private fields */ }Expand description
What the host asks a flow to do. Build one with Input::start or
Input::resume, then add to it. A mistake, such as a param on a resume,
is reported by Flow::run, not dropped.
Implementations§
Source§impl Input
impl Input
Sourcepub fn start(entry: impl Into<String>, data: impl Into<Value>) -> Input
pub fn start(entry: impl Into<String>, data: impl Into<Value>) -> Input
Start a new instance at entry, with data as input.data.
Sourcepub fn resume(token: Token, data: impl Into<Value>) -> Input
pub fn resume(token: Token, data: impl Into<Value>) -> Input
Continue the instance token belongs to, with data as input.data.
Sourcepub fn event(self, name: impl Into<String>, payload: impl Into<Value>) -> Input
pub fn event(self, name: impl Into<String>, payload: impl Into<Value>) -> Input
Deliver an event: a declared one, or tick. Expressions read its
name as input.event and payload as input.payload.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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