pub struct BatchFuture<'ring> { /* private fields */ }Expand description
Future for batch operations that can be awaited.
This future manages the completion of multiple operations submitted as a batch, handling dependencies and partial failures according to the batch configuration.
§Example
ⓘ
let mut ring = Ring::new(32)?;
let mut batch = Batch::new();
let mut buffer = PinnedBuffer::with_capacity(1024);
batch.add_operation(Operation::read().fd(0).buffer(buffer.as_mut_slice()))?;
let results = ring.submit_batch(batch).await?;
println!("Batch completed with {} operations", results.results.len());Trait Implementations§
Source§impl<'ring> Drop for BatchFuture<'ring>
impl<'ring> Drop for BatchFuture<'ring>
Source§impl<'ring> Future for BatchFuture<'ring>
impl<'ring> Future for BatchFuture<'ring>
Source§type Output = Result<BatchResult, SaferRingError>
type Output = Result<BatchResult, SaferRingError>
The type of value produced on completion.
Auto Trait Implementations§
impl<'ring> !RefUnwindSafe for BatchFuture<'ring>
impl<'ring> !UnwindSafe for BatchFuture<'ring>
impl<'ring> Freeze for BatchFuture<'ring>
impl<'ring> Send for BatchFuture<'ring>
impl<'ring> Sync for BatchFuture<'ring>
impl<'ring> Unpin for BatchFuture<'ring>
impl<'ring> UnsafeUnpin for BatchFuture<'ring>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more