[−][src]Struct linux_aio_tokio::GenericAioContext
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]
A::LinkOps: LinkedListOps + Default,
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]
A::LinkOps: LinkedListOps + Default,
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,
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,
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]
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>,