pub struct SharedFd { /* private fields */ }

Implementations

Import a shared file descriptor based on environment variable SHM_SHARED_FDS.

Safety

Caller asserts that the environment variable has been set to a file descriptor that is not owned by any other resource.

Open the file descriptor.

This can fail if for some reason the file descriptor does not refer to an anonymous memory file.

Trait Implementations

Extracts the raw file descriptor. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.