[−][src]Trait fd_queue::EnqueueFd
An interface to enqueue a RawFd
for later tranmission to a different
process.
This trait is intended to interact with Write
as the mechanism for
actually transmitting the enqueued RawFd
. Specfically, the RawFd
will be transmittied after a write()
of at least 1 byte and, possibly, a
flush()
.
Required methods
fn enqueue(&mut self, fd: &impl AsRawFd) -> Result<(), QueueFullError>
Enqueue fd
for later tranmission to a different process.
The caller is responsible for keeping fd
open until after the write()
and
flush()
calls for actually transmitting the fd
have been completed.
Implementors
impl EnqueueFd for fd_queue::mio::UnixStream
[src]
impl EnqueueFd for fd_queue::UnixStream
[src]
Enqueue a RawFd
for later transmission across the UnixStream
.
The RawFd
will be transmitted on a later call to a method of Write
.
The number of RawFd
that can be enqueued before being transmitted is
bounded by FD_QUEUE_SIZE
.