[][src]Trait fd_queue::DequeueFd

pub trait DequeueFd {
    fn dequeue(&mut self) -> Option<RawFd>;
}

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 tranmitting the RawFd before it can be dequeued. Specfically the RawFd will become available for dequeuing after at least 1 byte has been read().

Required methods

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

Dequeue a previouly transmitted RawFd.

The caller is responsible for closing this RawFd.

Loading content...

Implementors

Loading content...