[][src]Struct runng::asyncio::aio::NngAio

pub struct NngAio { /* fields omitted */ }

Handle to nng_aio. See nng_aio.

Safety

nng_aio only permits a single operation at a time. Misusing this will cause undefined behavior.

Methods

impl NngAio[src]

pub fn create<T, F>(func: F, callback: AioCallback) -> Result<AioArg<T>> where
    T: Aio,
    F: FnOnce(NngAio) -> T, 
[src]

Create an nng_aio for asynchronous I/O operations. See nng_aio_alloc

pub unsafe fn nng_aio(&self) -> *mut nng_aio[src]

Obtain underlying nng_aio.

Safety

See NngAio

pub unsafe fn set_iov(&self, iov: &[nng_iov]) -> Result<()>[src]

Set scatter/gather vector for vectored I/O.

See nng_aio_set_iov

Safety

See NngAio

pub unsafe fn aio_count(&self) -> usize[src]

pub unsafe fn get_output(&self, index: u32) -> *mut c_void[src]

pub unsafe fn cancel(&self)[src]

Cancel asynchronous I/O operation. See nng_aio_cancel

Safety

See NngAio

pub unsafe fn abort_i32(&self, err: i32)[src]

Cancel asynchronous I/O operation. See nng_aio_abort

Safety

See NngAio

pub unsafe fn wait(&self)[src]

Wait for an asynchronous I/O operation to complete.

See nng_aio_wait

Safety

See NngAio

pub unsafe fn result(&self) -> Result<()>[src]

Get result of asynchronous operation.

See nng_aio_result

Safety

See NngAio

pub fn set_timeout(&self, timeout: nng_duration)[src]

Set timeout for operations. See nng_aio_set_timeout

Trait Implementations

impl Debug for NngAio[src]

impl Drop for NngAio[src]

impl Send for NngAio[src]

Auto Trait Implementations

impl RefUnwindSafe for NngAio

impl !Sync for NngAio

impl Unpin for NngAio

impl UnwindSafe for NngAio

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.