[][src]Struct hyper_socket::UnixSocketConnection

pub struct UnixSocketConnection(_);

A wrapper around Tokio's UnixStream type, implementing Connection.

Methods from Deref<Target = UnixStream>

pub fn local_addr(&self) -> Result<SocketAddr, Error>[src]

Returns the socket address of the local half of this connection.

pub fn peer_addr(&self) -> Result<SocketAddr, Error>[src]

Returns the socket address of the remote half of this connection.

pub fn peer_cred(&self) -> Result<UCred, Error>[src]

Returns effective credentials of the process which called connect or pair.

pub fn take_error(&self) -> Result<Option<Error>, Error>[src]

Returns the value of the SO_ERROR option.

pub fn shutdown(&self, how: Shutdown) -> Result<(), Error>[src]

Shuts down the read, write, or both halves of this connection.

This function will cause all pending and future I/O calls on the specified portions to immediately return with an appropriate value (see the documentation of Shutdown).

pub fn split(&mut self) -> (ReadHalf, WriteHalf)[src]

Split a UnixStream into a read half and a write half, which can be used to read and write the stream concurrently.

See the module level documenation of split for more details.

Trait Implementations

impl AsyncRead for UnixSocketConnection[src]

impl AsyncWrite for UnixSocketConnection[src]

impl Connection for UnixSocketConnection[src]

impl Deref for UnixSocketConnection[src]

type Target = UnixStream

The resulting type after dereferencing.

impl DerefMut for UnixSocketConnection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.