pub struct SubmitBatch<'a, M, N, P> { /* private fields */ }Expand description
A scoped batch of producer submissions.
Submissions are published immediately, while notification is delayed until
finish. finish is explicit because the event-suppression
check can fail; dropping a batch does not notify.
Implementations§
Source§impl<'a, M, N, P> SubmitBatch<'a, M, N, P>
impl<'a, M, N, P> SubmitBatch<'a, M, N, P>
Sourcepub fn chain(&self) -> ChainBuilder<M, P>
pub fn chain(&self) -> ChainBuilder<M, P>
Begin building a descriptor chain for this batch.
Sourcepub fn submit(&mut self, chain: SendChain<M, P>) -> Result<Token, VirtqError>
pub fn submit(&mut self, chain: SendChain<M, P>) -> Result<Token, VirtqError>
Publish a chain as part of this batch without notifying yet.
Sourcepub fn finish(self) -> Result<bool, VirtqError>
pub fn finish(self) -> Result<bool, VirtqError>
Finish the batch and notify the consumer once if event suppression requires it for the whole published range.
Returns true if a notification was sent.
Auto Trait Implementations§
impl<'a, M, N, P> !UnwindSafe for SubmitBatch<'a, M, N, P>
impl<'a, M, N, P> Freeze for SubmitBatch<'a, M, N, P>
impl<'a, M, N, P> RefUnwindSafe for SubmitBatch<'a, M, N, P>
impl<'a, M, N, P> Send for SubmitBatch<'a, M, N, P>
impl<'a, M, N, P> Sync for SubmitBatch<'a, M, N, P>
impl<'a, M, N, P> Unpin for SubmitBatch<'a, M, N, P>
impl<'a, M, N, P> UnsafeUnpin for SubmitBatch<'a, M, N, P>
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