pub type TcpOwnedReadHalf = OwnedReadHalf<TcpStream>;
Expand description
OwnedReadHalf.
Aliased Type§
pub struct TcpOwnedReadHalf(pub Rc<UnsafeCell<TcpStream>>);
Tuple Fields§
§0: Rc<UnsafeCell<TcpStream>>
Implementations§
Source§impl TcpOwnedReadHalf
impl TcpOwnedReadHalf
Sourcepub fn peer_addr(&self) -> Result<SocketAddr>
pub fn peer_addr(&self) -> Result<SocketAddr>
Returns the remote address that this stream is connected to.
Sourcepub fn local_addr(&self) -> Result<SocketAddr>
pub fn local_addr(&self) -> Result<SocketAddr>
Returns the local address that this stream is bound to.
Trait Implementations§
Source§impl AsReadFd for TcpOwnedReadHalf
impl AsReadFd for TcpOwnedReadHalf
Source§fn as_reader_fd(&mut self) -> &SharedFdWrapper
fn as_reader_fd(&mut self) -> &SharedFdWrapper
Get fd.