[−][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.