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 Twhere OwnedSocket: From<T>,