Trait fbthrift_git::Transport[][src]

pub trait Transport: Framing + Send + 'static {
    fn call(
        &self,
        service_name: &ConstCStr,
        fn_name: &ConstCStr,
        req: FramingEncodedFinal<Self>
    ) -> Pin<Box<dyn Future<Output = Result<FramingDecoded<Self>, Error>> + Send + 'static>>; fn call_stream(
        &self,
        _service_name: &ConstCStr,
        _fn_name: &ConstCStr,
        _req: FramingEncodedFinal<Self>
    ) -> Pin<Box<dyn Future<Output = Result<(FramingDecoded<Self>, Pin<Box<dyn Stream<Item = Result<FramingDecoded<Self>, Error>> + Send + 'static>>), Error>> + Send + 'static>> { ... } }

Required methods

fn call(
    &self,
    service_name: &ConstCStr,
    fn_name: &ConstCStr,
    req: FramingEncodedFinal<Self>
) -> Pin<Box<dyn Future<Output = Result<FramingDecoded<Self>, Error>> + Send + 'static>>
[src]

Loading content...

Provided methods

fn call_stream(
    &self,
    _service_name: &ConstCStr,
    _fn_name: &ConstCStr,
    _req: FramingEncodedFinal<Self>
) -> Pin<Box<dyn Future<Output = Result<(FramingDecoded<Self>, Pin<Box<dyn Stream<Item = Result<FramingDecoded<Self>, Error>> + Send + 'static>>), Error>> + Send + 'static>>
[src]

Loading content...

Implementors

Loading content...