Trait GraphQLServer

Source
pub trait GraphQLServer:
    Send
    + Sync
    + Lifecycle {
    // Required method
    fn serve<'life0, 'async_trait>(
        &'life0 self,
        stopper: Receiver<()>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn serve<'life0, 'async_trait>( &'life0 self, stopper: Receiver<()>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Trait Implementations§

Source§

impl Injectable for dyn GraphQLServer + Sync + Send

Implementors§