Trait DequeueFd

Source
pub trait DequeueFd {
    // Required method
    fn dequeue(&mut self) -> Option<RawFd>;
}
Expand description

An interface to dequeue a RawFd that was previously transmitted from a different process.

This trait is intended to interact with Read as the mechanism for actually transmitting the RawFd before it can be dequeued. Specifically the RawFd will become available for dequeuing after at least 1 byte has been read().

Required Methods§

Source

fn dequeue(&mut self) -> Option<RawFd>

Dequeue a previously transmitted RawFd.

The caller is responsible for closing this RawFd.

Implementors§

Source§

impl DequeueFd for fd_queue::mio::UnixStream

Source§

impl DequeueFd for fd_queue::UnixStream

Dequeue a RawFd that was previously transmitted across the UnixStream.

The RawFd that are dequeued were transmitted by a previous call to a method of Read.

Source§

impl DequeueFd for fd_queue::tokio::UnixStream