pub type UnixOwnedReadHalf = OwnedReadHalf<UnixStream>;
Expand description
OwnedReadHalf.
Aliased Type§
pub struct UnixOwnedReadHalf(pub Rc<UnsafeCell<UnixStream>>);
Tuple Fields§
§0: Rc<UnsafeCell<UnixStream>>
Implementations§
Source§impl UnixOwnedReadHalf
impl UnixOwnedReadHalf
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 UnixOwnedReadHalf
impl AsReadFd for UnixOwnedReadHalf
Source§fn as_reader_fd(&mut self) -> &SharedFdWrapper
fn as_reader_fd(&mut self) -> &SharedFdWrapper
Get fd.