pub enum ExecutionResult<M> {
None,
Message(M),
Messages(Vec<M>),
Pending,
}Expand description
Result of command execution.
Variants§
None
No result (Command::None or non-message-producing commands)
Message(M)
A single message was produced
Messages(Vec<M>)
Multiple messages were produced
Pending
Command is pending (async)
Implementations§
Source§impl<M> ExecutionResult<M>
impl<M> ExecutionResult<M>
Sourcepub const fn has_messages(&self) -> bool
pub const fn has_messages(&self) -> bool
Check if there are messages.
Sourcepub fn into_messages(self) -> Vec<M>
pub fn into_messages(self) -> Vec<M>
Get messages as a vector.