Skip to main content

SourceMiddlewareFactory

Trait SourceMiddlewareFactory 

Source
pub trait SourceMiddlewareFactory: Send + Sync {
    // Required methods
    fn name(&self) -> String;
    fn create(
        &self,
        config: &SourceMiddlewareConfig,
    ) -> Result<Arc<dyn SourceMiddleware>, MiddlewareSetupError>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§