Struct hyper_unix_socket::UnixSocketConnection
source · 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 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