Trait GetSocket

Source
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§

Source

fn socket(&self) -> &NngSocket

Obtain underlying NngSocket.

Source

fn socket_mut(&mut self) -> &mut NngSocket

Provided Methods§

Source

unsafe fn nng_socket(&self) -> nng_socket

Obtain underlying nng_socket.

Implementors§