pub struct UnixSocketConnection(/* private fields */);
Expand description
A stream that goes over a Unix socket.
Trait Implementations§
Source§impl Connection for UnixSocketConnection
impl Connection for UnixSocketConnection
Source§impl Debug for UnixSocketConnection
impl Debug for UnixSocketConnection
Source§impl From<TokioIo<UnixStream>> for UnixSocketConnection
impl From<TokioIo<UnixStream>> for UnixSocketConnection
Source§fn from(inner: TokioIo<UnixStream>) -> Self
fn from(inner: TokioIo<UnixStream>) -> Self
Converts to this type from the input type.
Source§impl Read for UnixSocketConnection
impl Read for UnixSocketConnection
Source§impl Write for UnixSocketConnection
impl Write for UnixSocketConnection
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize, Error>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Error>>
Attempt to write bytes from
buf
into the destination. Read moreSource§fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>],
) -> Poll<Result<usize, Error>>
fn poll_write_vectored( self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>], ) -> Poll<Result<usize, Error>>
Like
poll_write
, except that it writes from a slice of buffers.Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
Returns whether this writer has an efficient
poll_write_vectored
implementation. Read moreAuto Trait Implementations§
impl !Freeze for UnixSocketConnection
impl RefUnwindSafe for UnixSocketConnection
impl Send for UnixSocketConnection
impl Sync for UnixSocketConnection
impl Unpin for UnixSocketConnection
impl UnwindSafe for UnixSocketConnection
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