[][src]Trait sendfd::SendWithFd

pub trait SendWithFd {
    fn send_with_fd(&self, bytes: &[u8], fds: &[RawFd]) -> Result<usize>;
}

An extension trait that enables sending associated file descriptors along with the data.

Required methods

fn send_with_fd(&self, bytes: &[u8], fds: &[RawFd]) -> Result<usize>

Send the bytes and the file descriptors.

Loading content...

Implementations on Foreign Types

impl SendWithFd for UnixStream[src]

fn send_with_fd(&self, bytes: &[u8], fds: &[RawFd]) -> Result<usize>[src]

Send the bytes and the file descriptors as a stream.

Neither is guaranteed to be received by the other end in a single chunk and may arrive entirely independently.

impl SendWithFd for UnixDatagram[src]

fn send_with_fd(&self, bytes: &[u8], fds: &[RawFd]) -> Result<usize>[src]

Send the bytes and the file descriptors as a single packet.

It is guaranteed that the bytes and the associated file descriptors will arrive at the same time, however the receiver end may not receive the full message if its buffers are too small.

Loading content...

Implementors

Loading content...