pub struct Completion<'a, T, E: RingOp<T>> { /* private fields */ }Expand description
Context object passed to RingOp::complete.
Trait Implementations§
Source§impl<T, E: RingOp<T>> RingAccess for Completion<'_, T, E>
impl<T, E: RingOp<T>> RingAccess for Completion<'_, T, E>
Source§fn push(&mut self, op: E) -> Result<()>
fn push(&mut self, op: E) -> Result<()>
This can be used to push new operations from within RingOp::complete.
Note that the operations are buffered until completion is finished and then pushed to the parent Ring.
type Context = T
type Operation = E
Source§fn context_mut(&mut self) -> &mut T
fn context_mut(&mut self) -> &mut T
Returns a mutable reference to the context value stored in a Ring.
Auto Trait Implementations§
impl<'a, T, E> !UnwindSafe for Completion<'a, T, E>
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> UnsafeUnpin for Completion<'a, T, E>where
E: 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