pub struct UnixStream(/* private fields */);
Available on Unix only.
Implementations§
Source§impl UnixStream
impl UnixStream
pub async fn connect(path: impl AsRef<Path>) -> Result<UnixStream>
pub fn local_addr(&self) -> Result<SocketAddr>
pub fn pair() -> Result<(UnixStream, UnixStream)>
pub fn peer_addr(&self) -> Result<SocketAddr>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnixStream
impl RefUnwindSafe for UnixStream
impl Send for UnixStream
impl Sync for UnixStream
impl Unpin for UnixStream
impl UnwindSafe for UnixStream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more