Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§