web5_rust

Trait Server

Source
pub trait Server:
    DynClone
    + Debug
    + Sync
    + Send {
    // Required method
    fn start_server<'life0, 'async_trait>(
        &'life0 self,
        dwn: Dwn,
        port: u32,
    ) -> Pin<Box<dyn Future<Output = Result<Server, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn start_server<'life0, 'async_trait>( &'life0 self, dwn: Dwn, port: u32, ) -> Pin<Box<dyn Future<Output = Result<Server, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§