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§
Required Methods§
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.