pub trait Handler<Context, Code, Input>: IsProviderFor<HandlerComponent, Context, (Code, Input)>where
Context: HasAsyncErrorType,{
type Output;
// Required method
fn handle(
context: &Context,
_tag: PhantomData<Code>,
input: Input,
) -> impl Future<Output = Result<Self::Output, Context::Error>> + MaybeSend;
}Required Associated Types§
Required Methods§
fn handle( context: &Context, _tag: PhantomData<Code>, input: Input, ) -> impl Future<Output = Result<Self::Output, Context::Error>> + MaybeSend
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.