ImplsMethodBoxed

Trait ImplsMethodBoxed 

Source
pub trait ImplsMethodBoxed<API: HasMethod<M>, M>: Sync {
    // Required method
    fn call_api_box<'s, 'a>(
        &'s self,
        _req: M,
    ) -> Pin<Box<dyn Future<Output = API::Res> + Send + 'a>>
       where Self: 's,
             API: 'static,
             M: 'a,
             's: 'a;
}
Expand description

Same as ImplsMethod but dyn-compatible

Required Methods§

Source

fn call_api_box<'s, 'a>( &'s self, _req: M, ) -> Pin<Box<dyn Future<Output = API::Res> + Send + 'a>>
where Self: 's, API: 'static, M: 'a, 's: 'a,

Implementors§

Source§

impl<API, M, B> ImplsMethodBoxed<API, M> for B
where B: ImplsMethod<API, M> + Sync, API: HasMethod<M>,