1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 08:45:10 +02:00

ws services

This commit is contained in:
Nikolay Kim
2018-10-22 09:59:20 -07:00
parent 20c693b39c
commit 9b94eaa6a8
7 changed files with 284 additions and 20 deletions

View File

@ -267,7 +267,10 @@ pub struct OneRequest<T> {
_t: PhantomData<T>,
}
impl<T> OneRequest<T> {
impl<T> OneRequest<T>
where
T: AsyncRead + AsyncWrite,
{
/// Create new `H1SimpleService` instance.
pub fn new() -> Self {
OneRequest {