hopr_transport_protocol::msg::processor

Trait PacketWrapping

Source
pub trait PacketWrapping {
    type Input;

    // Required method
    fn send<'life0, 'async_trait>(
        &'life0 self,
        data: ApplicationData,
        path: TransportPath,
    ) -> Pin<Box<dyn Future<Output = Result<(PeerId, Box<[u8]>)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn send<'life0, 'async_trait>( &'life0 self, data: ApplicationData, path: TransportPath, ) -> Pin<Box<dyn Future<Output = Result<(PeerId, Box<[u8]>)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl<Db> PacketWrapping for PacketProcessor<Db>
where Db: HoprDbProtocolOperations + Send + Sync + Debug + Clone,