ServiceTransport

Trait ServiceTransport 

Source
pub trait ServiceTransport<P: Protocol>:
    Sink<Frame<P::Response>, Error = P::Error>
    + Stream<Item = Result<Frame<P::Request>, P::Error>>
    + Send
    + Sync
    + Unpin {
    // Required method
    fn context(&self) -> Context;
}

Required Methods§

Source

fn context(&self) -> Context

Implementors§

Source§

impl<P: Protocol, T> ServiceTransport<P> for T
where T: Sink<Frame<P::Response>, Error = P::Error> + Stream<Item = Result<Frame<P::Request>, P::Error>> + Send + Sync + Unpin + Contextual,