pub trait AsSocket: From<(Socket, EventedFile)> + Sized {
    fn socket(self) -> Socket;
}
Expand description

The AsSocket trait is implemented for all wrapper types. This makes implementing other traits a matter of saying a given type implements them.

Required Methods§

Any type implementing AsSocket must have a way of returning a reference to a Socket.

Implementors§