Struct Command
Source pub struct Command<M> { }
Expand description
A command that can be returned from update.
Commands represent side effects that should happen after
updating the model.
Create a command that does nothing.
Create a command that quits the application.
Create a command that sends a message.
Batch multiple commands together.
Create a command from an async task.
The task will be spawned and its result will be sent as a message.
Check if this is a quit command.
Check if this is a no-op command.
Returns the “default value” for a type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.