pub struct BoundInvocation<R> { /* private fields */ }Expand description
A resolved invocation together with the handler that will run it.
Running cannot fail: the handler was looked up at resolution, by the registry that owns it.
Implementations§
Source§impl<R> BoundInvocation<R>
impl<R> BoundInvocation<R>
Sourcepub fn output_plan(&self) -> &OutputPlan
pub fn output_plan(&self) -> &OutputPlan
The output contract, readable before the handler runs so a caller can install redirection first.
Sourcepub fn invocation(&self) -> &ResolvedInvocation
pub fn invocation(&self) -> &ResolvedInvocation
The resolved invocation, for a caller that needs more than the plan.
Sourcepub fn run_with_invocation(self) -> (R, ResolvedInvocation)
pub fn run_with_invocation(self) -> (R, ResolvedInvocation)
Run the bound handler and give the invocation back.
For a caller that still needs the resolved values afterwards — a command
path, or globals read once the handler has produced its command. Without
this the only way to keep them past run is to clone the
value maps before calling it.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for BoundInvocation<R>
impl<R> RefUnwindSafe for BoundInvocation<R>
impl<R> Send for BoundInvocation<R>
impl<R> Sync for BoundInvocation<R>
impl<R> Unpin for BoundInvocation<R>
impl<R> UnsafeUnpin for BoundInvocation<R>
impl<R> UnwindSafe for BoundInvocation<R>
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