Trait sendfd::SendWithFd
source · [−]pub trait SendWithFd {
fn send_with_fd(&self, bytes: &[u8], fds: &[RawFd]) -> Result<usize>;
}
Expand description
An extension trait that enables sending associated file descriptors along with the data.
Required Methods
Implementations on Foreign Types
sourceimpl SendWithFd for UnixStream
impl SendWithFd for UnixStream
sourceimpl SendWithFd for UnixStream
Available on crate feature tokio
only.
impl SendWithFd for UnixStream
Available on crate feature
tokio
only.sourceimpl SendWithFd for WriteHalf<'_>
Available on crate feature tokio
only.
impl SendWithFd for WriteHalf<'_>
Available on crate feature
tokio
only.sourceimpl SendWithFd for UnixDatagram
impl SendWithFd for UnixDatagram
sourcefn send_with_fd(&self, bytes: &[u8], fds: &[RawFd]) -> Result<usize>
fn send_with_fd(&self, bytes: &[u8], fds: &[RawFd]) -> Result<usize>
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.
sourceimpl SendWithFd for UnixDatagram
Available on crate feature tokio
only.
impl SendWithFd for UnixDatagram
Available on crate feature
tokio
only.sourcefn send_with_fd(&self, bytes: &[u8], fds: &[RawFd]) -> Result<usize>
fn send_with_fd(&self, bytes: &[u8], fds: &[RawFd]) -> Result<usize>
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.