feat(server): add into_inner to AddrStream (#1762)
It consumes the `AddrStream` and returns the underlying TcpStream.
This commit is contained in:
committed by
Sean McArthur
parent
8393dc9f18
commit
e52f80df5a
@@ -219,6 +219,12 @@ mod addr_stream {
|
||||
pub fn remote_addr(&self) -> SocketAddr {
|
||||
self.remote_addr
|
||||
}
|
||||
|
||||
/// Consumes the AddrStream and returns the underlying IO object
|
||||
#[inline]
|
||||
pub fn into_inner(self) -> TcpStream {
|
||||
self.inner
|
||||
}
|
||||
}
|
||||
|
||||
impl Read for AddrStream {
|
||||
|
||||
Reference in New Issue
Block a user