Trait AsyncSendTokioStream

Source
pub trait AsyncSendTokioStream {
    // Required method
    fn send_stream(
        &self,
        fd: UnixStream,
    ) -> impl Future<Output = Result<(), Error>> + Send;
}
Expand description

A trait to send raw file descriptors

Required Methods§

Source

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

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 AsyncSendTokioStream for WriteHalf<'_>

Source§

async fn send_stream(&self, stream: UnixStream) -> Result<(), Error>

Source§

impl AsyncSendTokioStream for OwnedWriteHalf

Source§

async fn send_stream(&self, stream: UnixStream) -> Result<(), Error>

Source§

impl AsyncSendTokioStream for UnixStream

Source§

async fn send_stream(&self, stream: UnixStream) -> Result<(), Error>

Implementors§