[][src]Struct rio::Completion

pub struct Completion<'a, C: FromCqe> { /* fields omitted */ }

A Future value which may or may not be filled

Safety

To prevent undefined behavior in the form of use-after-free, never allow a Completion's lifetime to end without dropping it. This can happen with std::mem::forget, cycles in Arc or Rc, and in other ways.

Implementations

impl<'a, C: FromCqe> Completion<'a, C>[src]

pub fn wait(self) -> Result<C> where
    C: FromCqe
[src]

Block on the Completion's completion or dropping of the Filler

Trait Implementations

impl<'a, C: Debug + FromCqe> Debug for Completion<'a, C>[src]

impl<'a, C: FromCqe> Drop for Completion<'a, C>[src]

impl<'a, C: FromCqe> Future for Completion<'a, C>[src]

type Output = Result<C>

The type of value produced on completion.

Auto Trait Implementations

impl<'a, C> !RefUnwindSafe for Completion<'a, C>

impl<'a, C> Send for Completion<'a, C> where
    C: Sync

impl<'a, C> Sync for Completion<'a, C> where
    C: Sync

impl<'a, C> Unpin for Completion<'a, C>

impl<'a, C> !UnwindSafe for Completion<'a, C>

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.