Function nc::io_cancel[][src]

pub fn io_cancel(
    ctx_id: aio_context_t,
    iocb: &mut iocb_t,
    result: &mut io_event_t
) -> Result<(), Errno>
Expand description

Attempts to cancel an iocb previously passed to io_submit. Attempts to cancel an iocb previously passed to io_submit. If the operation is successfully cancelled, the resulting event is copied into the memory pointed to by result without being placed into the completion queue and 0 is returned. May fail with -EFAULT if any of the data structures pointed to are invalid. May fail with -EINVAL if aio_context specified by ctx_id is invalid. May fail with -EAGAIN if the iocb specified was not cancelled. Will fail with -ENOSYS if not implemented.