[][src]Struct linux_aio_tokio::GenericAioContext

pub struct GenericAioContext<M: RawMutex, A: IntrusiveAdapter<M, L>, L: DefaultLinkOps<Ops = A::LinkOps> + Default> where
    A::LinkOps: LinkedListOps + Default
{ /* fields omitted */ }

Represents running AIO context. Must be kept while AIO is in use. In order to close it, close should be called. It will wait until all related futures are finished. Otherwise, if it just dropped, the termination will be triggered, but some running futures will continue running until they receive the data.

Methods

impl<M: RawMutex, A: IntrusiveAdapter<M, L>, L: DefaultLinkOps<Ops = A::LinkOps> + Default> GenericAioContext<M, A, L> where
    A::LinkOps: LinkedListOps + Default
[src]

pub fn available_slots(&self) -> Option<usize>[src]

Number of available AIO slots left in the context

pub async fn close(self)[src]

Close the AIO context and wait for all related running futures to complete.

Trait Implementations

impl<M: RawMutex, A: IntrusiveAdapter<M, L>, L: DefaultLinkOps<Ops = A::LinkOps> + Default> Debug for GenericAioContext<M, A, L> where
    A::LinkOps: LinkedListOps + Default
[src]

Auto Trait Implementations

impl<M, A, L> !RefUnwindSafe for GenericAioContext<M, A, L>

impl<M, A, L> Send for GenericAioContext<M, A, L> where
    A: Send,
    L: Send,
    M: Send + Sync

impl<M, A, L> Sync for GenericAioContext<M, A, L> where
    A: Send,
    L: Send,
    M: Send + Sync

impl<M, A, L> Unpin for GenericAioContext<M, A, L>

impl<M, A, L> !UnwindSafe for GenericAioContext<M, A, L>

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.