Trait argdata::fd::FdMapping[][src]

pub trait FdMapping {
    fn map(&mut self, fd: Fd) -> u32;
}

Something that can convert actual Fds to encoded fd numbers.

Required Methods

Implementations on Foreign Types

impl FdMapping for Vec<Fd>
[src]

Will number the encoded fds sequentially, storing the actual Fds in the vector at the index of the encoded fd.

No duplicates will be stored, as (indexes of) existing Fds in the vector are (re)used.

Implementors