Trait async_send_fd::AsyncSendFd

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

A trait to send raw file descriptors

Required Methods§

source

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

Send RawFd

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AsyncSendFd for UnixStream

source§

async fn send_fd(&self, fd: RawFd) -> Result<(), Error>

source§

impl AsyncSendFd for WriteHalf<'_>

source§

async fn send_fd(&self, fd: RawFd) -> Result<(), Error>

source§

impl AsyncSendFd for OwnedWriteHalf

source§

async fn send_fd(&self, fd: RawFd) -> Result<(), Error>

source§

impl AsyncSendFd for UnixStream

source§

async fn send_fd(&self, fd: RawFd) -> Result<(), Error>

Implementors§