Struct mio_aio::LioCb[][src]

pub struct LioCb<'a> { /* fields omitted */ }

Implementations

impl<'a> LioCb<'a>[src]

pub fn submit(&mut self) -> Result<(), LioError>[src]

Submit an LioCb to the aio(4) subsystem.

If the return value is LioError::EAGAIN, then no operations were enqueued due to system resource limitations. The application should free up resources and try again. If the return value is LioError::EINCOMPLETE, then some operations were enqueued, but others were not, due to system resource limitations. The application should wait for notification that the enqueued operations are complete, then resubmit the others with resubmit. If the return value is LioError::EIO, then some operations have failed to enqueue, and cannot be resubmitted. The application should wait for notification that the enqueued operations are complete, then examine the result of each operation to determine the problem.

pub fn resubmit(&mut self) -> Result<(), LioError>[src]

Resubmit an LioCb if it is incomplete.

If submit returns LioError::EINCOMPLETE, then some operations may not have been submitted. This method will collect status for any completed operations, then resubmit the others.

lio_listio

pub fn into_results<F, R>(self, callback: F) -> R where
    F: FnOnce(Box<dyn Iterator<Item = LioResult> + 'a>) -> R, 
[src]

Consume an LioCb and collect its operations’ results.

An iterator over all operations’ results will be supplied to the callback function.

Trait Implementations

impl<'a> Debug for LioCb<'a>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'a> Evented for LioCb<'a>[src]

fn register(
    &self,
    poll: &Poll,
    token: Token,
    events: Ready,
    _: PollOpt
) -> Result<()>
[src]

Register self with the given Poll instance. Read more

fn reregister(
    &self,
    poll: &Poll,
    token: Token,
    events: Ready,
    opts: PollOpt
) -> Result<()>
[src]

Re-register self with the given Poll instance. Read more

fn deregister(&self, _: &Poll) -> Result<()>[src]

Deregister self from the given Poll instance Read more

Auto Trait Implementations

impl<'a> RefUnwindSafe for LioCb<'a>

impl<'a> Send for LioCb<'a>

impl<'a> Sync for LioCb<'a>

impl<'a> Unpin for LioCb<'a>

impl<'a> UnwindSafe for LioCb<'a>

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.