pub struct Completion<B> {
pub token: SubmissionToken,
pub result: Result<u32, IoFault>,
pub buffer: Option<B>,
}Expand description
How a submission ended, as the backend reports it.
Fields§
§token: SubmissionTokenThe submission’s token.
result: Result<u32, IoFault>The bytes transferred – all of a write’s, and zero for a commit – or the fault it ended with.
buffer: Option<B>The submission’s owned buffer, handed back; None for a registered region or a commit.
Trait Implementations§
Auto Trait Implementations§
impl<B> !RefUnwindSafe for Completion<B>
impl<B> !UnwindSafe for Completion<B>
impl<B> Freeze for Completion<B>
impl<B> Send for Completion<B>
impl<B> Sync for Completion<B>
impl<B> Unpin for Completion<B>
impl<B> UnsafeUnpin for Completion<B>where
Option<B>: UnsafeUnpin,
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