pub struct Completion<'a, T, E: RingOp<T>> { /* private fields */ }Expand description
Context object passed to RingOp::complete.
Implementations§
Source§impl<T, E: RingOp<T>> Completion<'_, T, E>
impl<T, E: RingOp<T>> Completion<'_, T, E>
Sourcepub fn context_mut(&mut self) -> &mut T
pub fn context_mut(&mut self) -> &mut T
Returns a mutable reference to the context value stored in a Ring.
Sourcepub fn push(&mut self, op: E)
pub fn push(&mut self, op: E)
Pushes an operation to the submission queue.
This can be used to push new operations from within RingOp::complete.
See also Ring::push.
Auto Trait Implementations§
impl<'a, T, E> Freeze for Completion<'a, T, E>where
E: Freeze,
impl<'a, T, E> RefUnwindSafe for Completion<'a, T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<'a, T, E> Send for Completion<'a, T, E>
impl<'a, T, E> Sync for Completion<'a, T, E>
impl<'a, T, E> Unpin for Completion<'a, T, E>where
E: Unpin,
impl<'a, T, E> !UnwindSafe for Completion<'a, T, E>
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