Trait async_send_fd::AsyncRecvFd

source ·
pub trait AsyncRecvFd {
    // Required method
    fn recv_fd(&self) -> impl Future<Output = Result<RawFd, Error>> + Send;
}
Expand description

A trait to receive raw file descriptors

Required Methods§

source

fn recv_fd(&self) -> impl Future<Output = Result<RawFd, Error>> + Send

Receive RawFd

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AsyncRecvFd for UnixStream

source§

async fn recv_fd(&self) -> Result<RawFd, Error>

source§

impl AsyncRecvFd for ReadHalf<'_>

source§

async fn recv_fd(&self) -> Result<RawFd, Error>

source§

impl AsyncRecvFd for OwnedReadHalf

source§

async fn recv_fd(&self) -> Result<RawFd, Error>

source§

impl AsyncRecvFd for UnixStream

source§

async fn recv_fd(&self) -> Result<RawFd, Error>

Implementors§