pub enum Submitted<P> {
Pending(OperationId),
Completed {
operation: Operation<P>,
bytes_transferred: u32,
},
Failed {
operation: Operation<P>,
error: Error,
},
}Expand description
The outcome of AssociatedEndpoint::submit.
Variants§
Pending(OperationId)
A completion will arrive; the storage was transferred to the kernel and
is recovered later with Completion::claim. The OperationId
identifies the in-flight operation for cancellation and matching.
Completed
The operation completed synchronously with no completion packet (the skip-on-success case); the operation is returned already reclaimed, with the bytes the native call transferred.
Fields
Failed
Submission failed immediately with no completion; the operation is returned so its storage can be reused or dropped.
Trait Implementations§
Auto Trait Implementations§
impl<P> !Freeze for Submitted<P>
impl<P> !RefUnwindSafe for Submitted<P>
impl<P> !Send for Submitted<P>
impl<P> !Sync for Submitted<P>
impl<P> !UnwindSafe for Submitted<P>
impl<P> Unpin for Submitted<P>
impl<P> UnsafeUnpin for Submitted<P>where
Operation<P>: 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