pub enum ActionContext<State> {
Unit,
System(SystemContext<State>),
}
Expand description
An action context, describing any additional context that the action may carry. This is used to distribute system setup information when invoking them as actions, for example, when systems have defined action routes.
Variants§
Unit
The action is being invoked as a single unit.
System(SystemContext<State>)
The action is a collection of actions.
Trait Implementations§
Source§impl<State: Clone> Clone for ActionContext<State>
impl<State: Clone> Clone for ActionContext<State>
Source§fn clone(&self) -> ActionContext<State>
fn clone(&self) -> ActionContext<State>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<State: Debug> Debug for ActionContext<State>
impl<State: Debug> Debug for ActionContext<State>
Source§impl<State> Default for ActionContext<State>
impl<State> Default for ActionContext<State>
Source§fn default() -> ActionContext<State>
fn default() -> ActionContext<State>
Returns the “default value” for a type. Read more
Source§impl<State> From<ActionContext<State>> for Context<State>
impl<State> From<ActionContext<State>> for Context<State>
Source§fn from(action: ActionContext<State>) -> Self
fn from(action: ActionContext<State>) -> Self
Converts to this type from the input type.
Source§impl<State> From<SystemContext<State>> for ActionContext<State>
impl<State> From<SystemContext<State>> for ActionContext<State>
Source§fn from(context: SystemContext<State>) -> Self
fn from(context: SystemContext<State>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<State> Freeze for ActionContext<State>
impl<State> !RefUnwindSafe for ActionContext<State>
impl<State> Send for ActionContext<State>
impl<State> Sync for ActionContext<State>
impl<State> Unpin for ActionContext<State>
impl<State> !UnwindSafe for ActionContext<State>
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