pub trait GetSocket {
// Required methods
fn socket(&self) -> &NngSocket;
fn socket_mut(&mut self) -> &mut NngSocket;
// Provided method
unsafe fn nng_socket(&self) -> nng_socket { ... }
}
Expand description
Type which exposes an NngSocket
.
Required Methods§
fn socket_mut(&mut self) -> &mut NngSocket
Provided Methods§
Sourceunsafe fn nng_socket(&self) -> nng_socket
unsafe fn nng_socket(&self) -> nng_socket
Obtain underlying nng_socket
.