[−][src]Struct runng::asyncio::aio::NngAio
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]
T: Aio,
F: FnOnce(NngAio) -> T,
Create an nng_aio
for asynchronous I/O operations.
See nng_aio_alloc
pub unsafe fn nng_aio(&self) -> *mut nng_aio
[src]
pub unsafe fn set_iov(&self, iov: &[nng_iov]) -> Result<()>
[src]
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]
pub unsafe fn abort_i32(&self, err: i32)
[src]
pub unsafe fn wait(&self)
[src]
pub unsafe fn result(&self) -> Result<()>
[src]
pub fn set_timeout(&self, timeout: nng_duration)
[src]
Set timeout for operations. See nng_aio_set_timeout
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,