[][src]Trait sendfd::Sendable

pub trait Sendable {
    fn as_sendable_fd(&self) -> RawFd;
}

A trait to express the ability to inspect the raw file descriptor behind an object.

Unlike std::os::unix::io::AsRawFd this also supports the identity conversion (RawFd to RawFd).

Required methods

fn as_sendable_fd(&self) -> RawFd

Inspect 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.

Loading content...

Implementations on Foreign Types

impl Sendable for File[src]

impl Sendable for Stderr[src]

impl Sendable for Stdin[src]

impl Sendable for Stdout[src]

impl Sendable for TcpListener[src]

impl Sendable for TcpStream[src]

impl Sendable for UdpSocket[src]

impl Sendable for UnixDatagram[src]

impl Sendable for UnixListener[src]

impl Sendable for UnixStream[src]

impl Sendable for ChildStderr[src]

impl Sendable for ChildStdin[src]

impl Sendable for ChildStdout[src]

impl Sendable for RawFd[src]

Loading content...

Implementors

Loading content...