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§
Sourcefn as_raw_fd(&self) -> RawFd
🔬This is a nightly-only experimental API. (sgx_platform #56975)
fn as_raw_fd(&self) -> RawFd
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".