[][src]Struct uds::tokio::UnixSeqpacketConn

pub struct UnixSeqpacketConn { /* fields omitted */ }

An I/O object representing a Unix Sequenced-packet socket.

Implementations

impl UnixSeqpacketConn[src]

pub async fn connect<P: AsRef<Path>>(path: P) -> Result<UnixSeqpacketConn>[src]

Connects to the socket named by path.

This function will create a new Unix socket and connect to the path specified, associating the returned stream with the default event loop's handle.

pub fn from_nonblocking(conn: UnixSeqpacketConn) -> Result<UnixSeqpacketConn>[src]

Creates a tokio-compatible socket from a nonblocking variant.

pub fn pair() -> Result<(UnixSeqpacketConn, UnixSeqpacketConn)>[src]

Creates an unnamed pair of connected sockets.

This function will create a pair of interconnected Unix sockets for communicating back and forth between one another. Each socket will be associated with the default event loop's handle.

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

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

impl UnixSeqpacketConn[src]

pub async fn send<'_, '_>(&'_ mut self, buf: &'_ [u8]) -> Result<usize>[src]

Sends data on the socket to the socket's peer.

pub async fn recv<'_, '_>(&'_ mut self, buf: &'_ mut [u8]) -> Result<usize>[src]

Receives data from the socket.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?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 = Infallible

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.