pub struct OperationFuture<'ring, 'buf> { /* private fields */ }Expand description
Generic future for any operation type.
This provides a unified interface for different operation types while maintaining type safety and proper buffer ownership semantics. Unlike the specialized I/O futures, this returns the raw i32 result from io_uring without conversion to usize.
§Type Parameters
'ring- Lifetime of the io_uring instance'buf- Lifetime of the buffer being used for the operation
§Returns
Returns (i32, Option<Pin<&'buf mut [u8]>>) where:
i32is the raw result from io_uring (can be negative for errors)Option<Pin<&'buf mut [u8]>>is the buffer if the operation used one
Trait Implementations§
Source§impl<'ring, 'buf> Drop for OperationFuture<'ring, 'buf>
impl<'ring, 'buf> Drop for OperationFuture<'ring, 'buf>
Auto Trait Implementations§
impl<'ring, 'buf> !RefUnwindSafe for OperationFuture<'ring, 'buf>
impl<'ring, 'buf> !UnwindSafe for OperationFuture<'ring, 'buf>
impl<'ring, 'buf> Freeze for OperationFuture<'ring, 'buf>
impl<'ring, 'buf> Send for OperationFuture<'ring, 'buf>
impl<'ring, 'buf> Sync for OperationFuture<'ring, 'buf>
impl<'ring, 'buf> Unpin for OperationFuture<'ring, 'buf>
impl<'ring, 'buf> UnsafeUnpin for OperationFuture<'ring, 'buf>
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