io_lifetimes::raw

Trait AsRawSocketlike

source
pub trait AsRawSocketlike: AsRawFd {
    // Required method
    fn as_raw_socketlike(&self) -> RawSocketlike;
}
Expand description

This is a portability abstraction over Unix-like AsRawFd and Windows’ AsRawSocket.

Required Methods§

source

fn as_raw_socketlike(&self) -> RawSocketlike

Returns the raw value.

Implementors§