pub struct Dispatch<'a> {
pub run: &'a Runnable,
pub input: Option<&'a str>,
pub via: Via,
pub options: RunOptions,
}Expand description
An action to take: what runs, the person’s input, the interface it came through and how that interface runs it (who it asks, where progress goes, its cancel flag).
Fields§
§run: &'a RunnableWhat runs.
input: Option<&'a str>The person’s input (a reason, a note, a skill’s arguments); blank is none.
via: ViaThe interface, as what the person decides is recorded.
options: RunOptionsThe interface’s approver, progress and cancellation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Dispatch<'a>
impl<'a> !UnwindSafe for Dispatch<'a>
impl<'a> Freeze for Dispatch<'a>
impl<'a> Send for Dispatch<'a>
impl<'a> Sync for Dispatch<'a>
impl<'a> Unpin for Dispatch<'a>
impl<'a> UnsafeUnpin for Dispatch<'a>
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