[−][src]Trait runng::asyncio::AsyncSocket
A Socket
that can be turned into a context for asynchronous I/O.
Examples
use runng::{ *, asyncio::*, }; fn test() -> Result<(), NngFail> { let factory = Latest::default(); let pusher = factory.pusher_open()?.listen("inproc://test")?; let mut push_ctx = pusher.create_async()?; Ok(()) }
Associated Types
type ContextType: AsyncContext
The type of aynchronous context produced
Provided methods
fn create_async(&self) -> NngResult<Self::ContextType>
Turns the Socket
into an asynchronous context