io_lifetimes

Trait IntoSocketlike

Source
pub trait IntoSocketlike: Into<OwnedFd> {
    // Required method
    fn into_socketlike(self) -> OwnedSocketlike;
}
Expand description

A portable trait to express the ability to consume an object and acquire ownership of its socketlike object.

This is a portability abstraction over Unix-like Into<OwnedFd> and Windows’ Into<OwnedSocket>.

Required Methods§

Source

fn into_socketlike(self) -> OwnedSocketlike

Consumes this object, returning the underlying socketlike object.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§