pub struct DefaultProcessor<Message, Command>where
Command: SideEffect<Message>,{ /* private fields */ }Expand description
Default processor for commands, it just executes all side effects.
Trait Implementations§
Source§impl<Message, Command> Default for DefaultProcessor<Message, Command>where
Command: SideEffect<Message>,
impl<Message, Command> Default for DefaultProcessor<Message, Command>where
Command: SideEffect<Message>,
Source§impl<Message, Command> Processor<Message, Command> for DefaultProcessor<Message, Command>where
Command: SideEffect<Message>,
impl<Message, Command> Processor<Message, Command> for DefaultProcessor<Message, Command>where
Command: SideEffect<Message>,
Source§fn process(&self, cmd: Command, dispatcher: &Dispatcher<Message, Command>)
fn process(&self, cmd: Command, dispatcher: &Dispatcher<Message, Command>)
Proccess a command.
Auto Trait Implementations§
impl<Message, Command> Freeze for DefaultProcessor<Message, Command>
impl<Message, Command> RefUnwindSafe for DefaultProcessor<Message, Command>where
Message: RefUnwindSafe,
Command: RefUnwindSafe,
impl<Message, Command> Send for DefaultProcessor<Message, Command>
impl<Message, Command> Sync for DefaultProcessor<Message, Command>
impl<Message, Command> Unpin for DefaultProcessor<Message, Command>
impl<Message, Command> UnwindSafe for DefaultProcessor<Message, Command>where
Message: UnwindSafe,
Command: 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
Source§impl<M> Update<()> for M
impl<M> Update<()> for M
Source§fn update(&mut self, msg: Message, _commands: &mut Commands<Command>)
fn update(&mut self, msg: Message, _commands: &mut Commands<Command>)
Update the model using the given message. Implement this to describe the behavior of your
app.
Source§fn simple_update(&mut self, _msg: Message)
fn simple_update(&mut self, _msg: Message)
Update the model using the given message. Implement this if your app does not need to use
side effecting commands.