IntoEffect

Trait IntoEffect 

Source
pub trait IntoEffect<Type> {
    type Effect: HandlerEffect;

    // Required method
    fn into_effect(
        self,
    ) -> impl Future<Output = Result<Self::Effect, CliError>> + Send;
}
Expand description

Handlers can return any type that implements this trait

Required Associated Types§

Source

type Effect: HandlerEffect

Required Methods§

Source

fn into_effect( self, ) -> impl Future<Output = Result<Self::Effect, CliError>> + 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§