pub trait ServerStream: RequestReader + ResponseWriter {
// Provided method
fn handle<'life0, 'async_trait>(
&'life0 mut self,
timer: ThreadSafeTimer,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
}
Available on crate feature
server
only.Expand description
The server stream trait.
Describes how a request should be parsed and handled.