Trait TCommandService

Source
pub trait TCommandService<R, E>: Send + Sync {
    // Required method
    fn execute(self) -> impl Future<Output = Result<R, E>> + Send;
}
Expand description

Interface for messagebus to work on

Required Methods§

Source

fn execute(self) -> impl Future<Output = Result<R, E>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§