Trait unsafe_io::IntoUnsafeSocket [−][src]
pub unsafe trait IntoUnsafeSocket: IntoUnsafeHandle {
fn into_unsafe_socket(self) -> UnsafeSocket;
}
Expand description
A trait for types which can be converted into unsafe sockets.
A type implementing IntoUnsafeSocket
guarantees that the return value
from into_unsafe_socket
on an instance of the type is a copy of a handle
which is owned by that instance.
Safety
This trait is unsafe
because types implementing it must guarantee they
own their socket.
Required methods
fn into_unsafe_socket(self) -> UnsafeSocket
fn into_unsafe_socket(self) -> UnsafeSocket
Convert self
into an unsafe socket.