Trait tokio_zmq::prelude::AsSocket [−][src]
pub trait AsSocket: From<(Socket, PollEvented<File<ZmqFile>>)> + Sized { fn socket(self) -> Socket; }
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
fn socket(self) -> Socket
Any type implementing AsSocket
must have a way of returning a reference to a Socket.