Trait io_lifetimes::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§
sourcefn into_socket(self) -> OwnedSocket
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.