pub struct UDS(/* private fields */);
Expand description
Newtype for tokio::net::UnixStream
so that it can work with hyper’s Client
.
Trait Implementations§
Source§impl AsyncWrite for UDS
impl AsyncWrite for UDS
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize>>
Attempt to write bytes from
buf
into the object. Read moreSource§fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempts to flush the object, ensuring that any buffered data reach
their destination. Read more
Source§fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Initiates or attempts to shut down this writer, returning success when
the I/O connection has completely shut down. Read more
Source§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. Read moreSource§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
Determines if this writer has an efficient
poll_write_vectored
implementation. Read moreSource§impl Connection for UDS
impl Connection for UDS
Source§impl From<UnixStream> for UDS
impl From<UnixStream> for UDS
Source§fn from(f: UnixStream) -> Self
fn from(f: UnixStream) -> Self
Converts to this type from the input type.
Source§impl Into<UnixStream> for UDS
impl Into<UnixStream> for UDS
Source§fn into(self) -> UnixStream
fn into(self) -> UnixStream
Converts this type into the (usually inferred) input type.
impl<'pin> Unpin for UDSwhere
PinnedFieldsOf<__UDS<'pin>>: Unpin,
Auto Trait Implementations§
impl !Freeze for UDS
impl RefUnwindSafe for UDS
impl Send for UDS
impl Sync for UDS
impl UnwindSafe for UDS
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