[][src]Trait fbthrift_git::processor::ThriftService

pub trait ThriftService<F>: Send + Sync + 'static where
    F: Framing + Send + 'static, 
{ type Handler; type RequestContext; #[must_use] pub fn call<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: FramingDecoded<F>,
        req_ctxt: &'life1 Self::RequestContext
    ) -> Pin<Box<dyn Future<Output = Result<FramingEncodedFinal<F>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Associated Types

Loading content...

Required methods

#[must_use]pub fn call<'life0, 'life1, 'async_trait>(
    &'life0 self,
    req: FramingDecoded<F>,
    req_ctxt: &'life1 Self::RequestContext
) -> Pin<Box<dyn Future<Output = Result<FramingEncodedFinal<F>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementations on Foreign Types

impl<F, T: ?Sized> ThriftService<F> for Box<T> where
    T: ThriftService<F> + Send + Sync,
    F: Framing + Send + 'static,
    T::RequestContext: Send + Sync + 'static, 
[src]

type Handler = T::Handler

type RequestContext = T::RequestContext

Loading content...

Implementors

impl<P, R> ThriftService<<P as Protocol>::Frame> for NullServiceProcessor<P, R> where
    P: Protocol + Send + Sync + 'static,
    P::Frame: Send + 'static,
    R: Send + Sync + 'static, 
[src]

type Handler = ()

type RequestContext = R

Loading content...