[][src]Struct tokio_seqpacket::UnixSeqpacket

pub struct UnixSeqpacket { /* fields omitted */ }

Implementations

impl UnixSeqpacket[src]

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

Connect a new seqpacket socket to the given address.

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

Create a pair of connected seqpacket sockets.

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

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

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

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

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

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

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

Get the value of the SO_ERROR option.

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

Send data on the socket to the connected peer.

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

Receove data on the socket from the connected peer.

pub fn shutdown(&self, how: Shutdown) -> Result<()>[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 poll_send_priv(
    &self,
    cx: &mut Context<'_>,
    buf: &[u8]
) -> Poll<Result<usize>>
[src]

pub fn poll_recv_priv(
    &self,
    cx: &mut Context<'_>,
    buf: &mut [u8]
) -> Poll<Result<usize>>
[src]

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.