Trait 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

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 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§