web5_rustTrait Router
Source pub trait Router:
DynClone
+ Debug
+ Sync
+ Send {
// Required methods
fn start_server<'life0, 'async_trait>(
&'life0 self,
dwn: Server,
port: u32,
) -> Pin<Box<dyn Future<Output = Result<Server, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_request<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request: &'life1 DwnRequest,
dids: &'life2 [&'life3 Did],
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<u8>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}