IInteractionContext
trait · ferroui-reactiveui · v0.5.0
trait IInteractionContext<I, O>
The contextual information of an interaction, which its handlers receive
(IInteractionContext<TInput, TOutput>): the input, whether a handler set the output, and the
setting of the output.
A handler should set the output once; a second call is a logic error and panics. A handler
that should only respond when no other did checks is_handled first.
Members
input
fn input(self: &Self) -> &I
The input of the interaction (Input).
is_handled
fn is_handled(self: &Self) -> bool
Whether the interaction is handled, that is whether the output was set (IsHandled).
set_output
fn set_output(self: &Self, output: O)
Sets the output of the interaction (SetOutput(TOutput)).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.