Skip to main content

Command

Trait Command 

Source
pub trait Command: Send {
    type Output: Send;
}
Expand description

A named operation that may change application state.

Commands describe application intent and own their input. Infrastructure representations such as SQL statements or broker messages stay in adapters.

Required Associated Types§

Source

type Output: Send

Successful output produced by the command.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<C> Command for MessageEnvelope<C>
where C: Command,