HandlerFactory

Trait HandlerFactory 

Source
pub trait HandlerFactory<Input, Output, Metadata>
where Input: Default + Send, Output: Default + Send, Metadata: Send,
{ type Err; type CreatedHandler: Handler<Input, Output, Metadata>; // Required method fn create_handler( name: &str, provider_type: ProviderType, ) -> Result<Self::CreatedHandler, Self::Err>; }

Required Associated Types§

Source

type Err

Source

type CreatedHandler: Handler<Input, Output, Metadata>

Required Methods§

Source

fn create_handler( name: &str, provider_type: ProviderType, ) -> Result<Self::CreatedHandler, Self::Err>

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§