1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-29 16:14:58 +02:00

use impl-more in -tls

This commit is contained in:
Rob Ede
2022-10-17 04:14:09 +01:00
parent c4a0f37d0c
commit 25209f5bd8
8 changed files with 10 additions and 57 deletions

View File

@ -1,5 +1,4 @@
use super::Host;
use crate::impl_more;
/// Wraps underlying I/O and the connection request that initiated it.
#[derive(Debug)]
@ -8,8 +7,7 @@ pub struct Connection<R, IO> {
pub(crate) io: IO,
}
impl_more::deref! { Connection<R, IO> => io: IO }
impl_more::deref_mut! { Connection<R, IO> => io }
impl_more::impl_deref_and_mut!(<R, IO> in Connection<R, IO> => io: IO);
impl<R, IO> Connection<R, IO> {
/// Construct new `Connection` from request and IO parts.