pub trait ThriftService<F>: Send + Sync + 'staticwhere
    F: Framing + Send + 'static,
{ type Handler; type RequestContext; type ReplyState; fn call<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: FramingDecoded<F>,
        req_ctxt: &'life1 Self::RequestContext,
        reply_state: Arc<Mutex<Self::ReplyState>>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; fn get_method_names(&self) -> &'static [&'static str]; fn create_interaction(
        &self,
        _name: &str
    ) -> Result<Arc<dyn ThriftService<F, Handler = (), RequestContext = Self::RequestContext, ReplyState = Self::ReplyState> + Send + 'static>> { ... } }

Required Associated Types§

Required Methods§

Returns function names this thrift service is able to handle, similar to the keys of C++’s createMethodMetadata().

Return value includes inherited functions from parent thrift services, and interactions’ functions.

Provided Methods§

Implementations on Foreign Types§

Implementors§