Enum std::sys::unix::kernel_copy::FdMeta[][src]

enum FdMeta {
    Metadata(Metadata),
    Socket,
    Pipe,
    NoneObtained,
}
This is supported on Linux or Android only.
Expand description

This type represents either the inferred FileType of a RawFd based on the source type from which it was extracted or the actual metadata

The methods on this type only provide hints, due to AsRawFd and FromRawFd the inferred type may be wrong.

Variants

Metadata(Metadata)1.0.0

We obtained the FD from a type that can contain any type of FileType and queried the metadata because it is cheaper than probing all possible syscalls (reader side)

Tuple Fields of Metadata

0: Metadata
Socket1.0.0
Pipe1.0.0
NoneObtained1.0.0

We don’t have any metadata, e.g. because the original type was File which can represent any FileType and we did not query the metadata either since it did not seem beneficial (writer side)

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.