pub struct ActionContext<A, C> {
pub context: C,
pub action: A,
}Expand description
An action along with additional context about the decision.
Fields§
§context: CThe context.
action: AThe action.
Implementations§
Source§impl<A, C> ActionContext<A, C>
impl<A, C> ActionContext<A, C>
Trait Implementations§
Source§impl<A: Clone, C: Clone> Clone for ActionContext<A, C>
impl<A: Clone, C: Clone> Clone for ActionContext<A, C>
Source§fn clone(&self) -> ActionContext<A, C>
fn clone(&self) -> ActionContext<A, C>
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 moreAuto Trait Implementations§
impl<A, C> Freeze for ActionContext<A, C>
impl<A, C> RefUnwindSafe for ActionContext<A, C>where
C: RefUnwindSafe,
A: RefUnwindSafe,
impl<A, C> Send for ActionContext<A, C>
impl<A, C> Sync for ActionContext<A, C>
impl<A, C> Unpin for ActionContext<A, C>
impl<A, C> UnsafeUnpin for ActionContext<A, C>where
C: UnsafeUnpin,
A: UnsafeUnpin,
impl<A, C> UnwindSafe for ActionContext<A, C>where
C: UnwindSafe,
A: UnwindSafe,
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