Struct argdata::fd::EncodedFd[][src]

pub struct EncodedFd<T> { /* fields omitted */ }

A file descriptor in some argdata.

Methods

impl<T: ConvertFd> EncodedFd<T>
[src]

Create an EncodedFd that will convert raw to an Fd using convert_fd.

The 32-bit file descriptor number exactly as encoded in the raw argdata.

Converts this to a valid file descriptor, if possible.

On failure, the raw encoded number is returned as an error.

Trait Implementations

impl<T: Clone> Clone for EncodedFd<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for EncodedFd<T>
[src]

impl<'d, T: ConvertFd> Argdata<'d> for EncodedFd<T>
[src]

Read the value.

The number of bytes that self.serialize() will write.

Serialize the argdata to the given writer. Read more

Read the type of the value.

Check if the value is null.

Check if the value is a binary blob, and read it if it is.

Check if the value is a boolean, and read it if it is.

Check if the value is a file descriptor, and return it if it is. Read more

Check if the value is a float, and read it if it is.

Check if the value is an integer, and read it if it is. Read more

Check if the value is a map, and get access to it if it is.

Check if the value is a seq, and get access to it if it is.

Check if the value is a string, and read it if it is. Read more

Check if the value is a timestamp, and read it if it is.

Auto Trait Implementations

impl<T> Send for EncodedFd<T> where
    T: Send

impl<T> Sync for EncodedFd<T> where
    T: Sync