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