Skip to main content

AsRawSource

Trait AsRawSource 

Source
pub trait AsRawSource {
    // Required method
    fn raw(&self) -> RawFd;
}
Expand description

A resource with a raw file descriptor.

Required Methods§

Source

fn raw(&self) -> RawFd

Returns the raw file descriptor.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl AsRawSource for RawFd

Source§

fn raw(&self) -> RawFd

Source§

impl<T: AsRawFd> AsRawSource for &T

Source§

fn raw(&self) -> RawFd

Implementors§