web5_rust::dwn::traits

Trait Router

source
pub trait Router:
    DynClone
    + Debug
    + Sync
    + Send {
    // Required method
    fn send_packet<'life0, 'async_trait>(
        &'life0 self,
        packet: Packet,
        url: Url,
    ) -> Pin<Box<dyn Future<Output = Result<DwnResponse, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn send_packet<'life0, 'async_trait>( &'life0 self, packet: Packet, url: Url, ) -> Pin<Box<dyn Future<Output = Result<DwnResponse, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§