Trait frodobuf::Transport[][src]

pub trait Transport: Send {
    #[must_use]
    fn send<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        ctx: &'life1 Context<'life2>,
        config: &'life3 ClientConfig,
        req: Message<'life4>
    ) -> Pin<Box<dyn Future<Output = Result<Message<'static>, RpcError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        Self: 'async_trait
; }
Expand description

Transport determines how messages are sent Alternate implementations could be mock-server, or test-fuzz-server / test-fuzz-client

Required methods

#[must_use]
fn send<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
    &'life0 self,
    ctx: &'life1 Context<'life2>,
    config: &'life3 ClientConfig,
    req: Message<'life4>
) -> Pin<Box<dyn Future<Output = Result<Message<'static>, RpcError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    'life4: 'async_trait,
    Self: 'async_trait, 
[src]

Implementors

impl Transport for WasmHost[src]

fn send<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
    &'life0 self,
    _ctx: &'life1 Context<'life2>,
    config: &'life3 ClientConfig,
    req: Message<'life4>
) -> Pin<Box<dyn Future<Output = Result<Message<'static>, RpcError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    'life4: 'async_trait,
    Self: 'async_trait, 
[src]