Skip to main content

RpcTransport

Trait RpcTransport 

Source
pub trait RpcTransport: Send + 'static {
    // Required methods
    fn writer(&self) -> Sender<String>;
    fn next_frame<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn peer_label(&self) -> String;
}

Required Methods§

Source

fn writer(&self) -> Sender<String>

Source

fn next_frame<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn peer_label(&self) -> String

Implementors§