async_graphql::extensions

Trait ExtensionFactory

source
pub trait ExtensionFactory:
    Send
    + Sync
    + 'static {
    // Required method
    fn create(&self) -> Arc<dyn Extension>;
}
Expand description

Extension factory

Used to create an extension instance.

Required Methods§

source

fn create(&self) -> Arc<dyn Extension>

Create an extended instance.

Implementors§