pub trait ReliableNetwork<Request: Clone + Send + Sync> {
    type Response: Clone + Send + Sync;

    fn send<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        peer: NetworkPublicKey,
        message: &'life1 Request
    ) -> Pin<Box<dyn Future<Output = CancelOnDropHandler<Result<Response<Self::Response>>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn broadcast<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        peers: Vec<NetworkPublicKey>,
        message: &'life1 Request
    ) -> Pin<Box<dyn Future<Output = Vec<CancelOnDropHandler<Result<Response<Self::Response>>>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Send + 'async_trait
, { ... } }

Required Associated Types

Required Methods

Provided Methods

Implementors