Skip to main content

AsRawFd

Trait AsRawFd 

Source
pub trait AsRawFd {
    // Required method
    fn as_raw_fd(&self) -> RawFd;
}
🔬This is a nightly-only experimental API. (sgx_platform #56975)
Available on Fortanix and SGX only.
Expand description

A trait to extract the raw SGX file descriptor from an underlying object.

Required Methods§

Source

fn as_raw_fd(&self) -> RawFd

🔬This is a nightly-only experimental API. (sgx_platform #56975)

Extracts the raw file descriptor.

This method does not pass ownership of the raw file descriptor to the caller. The descriptor is only guaranteed to be valid while the original object has not yet been destroyed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§