io_lifetimes

Trait IntoSocket

Source
pub trait IntoSocket {
    // Required method
    fn into_socket(self) -> OwnedSocket;
}
👎Deprecated since 1.0.0: IntoSocket is replaced by From<...> for OwnedSocket or Into<OwnedSocket>
Expand description

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

Required Methods§

Source

fn into_socket(self) -> OwnedSocket

👎Deprecated since 1.0.0: IntoSocket is replaced by From<...> for OwnedSocket or Into<OwnedSocket>

Consumes this object, returning the underlying socket.

Implementors§

Source§

impl<T> IntoSocket for T
where OwnedSocket: From<T>,