Skip to main content

AsyncContext

Trait AsyncContext 

Source
pub trait AsyncContext: Sized {
    // Required method
    fn new(socket: NngSocket) -> Result<Self>;
}
Expand description

Context for asynchrounous I/O.

Required Methods§

Source

fn new(socket: NngSocket) -> Result<Self>

Create a new asynchronous context using specified socket.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§