pub struct Dispatcher<Action, State> { /* private fields */ }Implementations§
Source§impl<Action, State> Dispatcher<Action, State>where
Action: EnablingCondition<State>,
impl<Action, State> Dispatcher<Action, State>where
Action: EnablingCondition<State>,
pub fn new() -> Self
pub fn push<T>(&mut self, action: T)where
T: Into<Action>,
pub fn push_if_enabled<T>(
&mut self,
action: T,
state: &State,
time: Timestamp,
) -> boolwhere
T: Into<Action> + EnablingCondition<State>,
pub fn push_callback<T>(&mut self, callback: Callback<T>, args: T)
Trait Implementations§
Source§impl<Action, State> Default for Dispatcher<Action, State>where
Action: EnablingCondition<State>,
impl<Action, State> Default for Dispatcher<Action, State>where
Action: EnablingCondition<State>,
Auto Trait Implementations§
impl<Action, State> Freeze for Dispatcher<Action, State>
impl<Action, State> RefUnwindSafe for Dispatcher<Action, State>where
State: RefUnwindSafe,
Action: RefUnwindSafe,
impl<Action, State> Send for Dispatcher<Action, State>
impl<Action, State> Sync for Dispatcher<Action, State>
impl<Action, State> Unpin for Dispatcher<Action, State>
impl<Action, State> UnwindSafe for Dispatcher<Action, State>where
State: UnwindSafe,
Action: 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