pub struct Completion<'a, T, E: RingOp<T>> { /* private fields */ }👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.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(&self) -> &T
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn context(&self) -> &T
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Returns a reference to the context value stored in a Ring.
Sourcepub fn context_mut(&mut self) -> &mut T
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn context_mut(&mut self) -> &mut T
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Returns a mutable reference to the context value stored in a Ring.
Sourcepub fn push(&mut self, op: E)
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn push(&mut self, op: E)
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.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