pub struct OpCompletion<V, B, C>where
V: Identities,{
pub id: <V as Identities>::OpId,
pub kind: OpKind<V>,
pub outcome: Outcome<V>,
pub buffer: Option<B>,
pub context: C,
}Expand description
A consumer operation’s completion, passed through the instance’s queue. buffer is None
for an operation on a registered span: the bytes belong to the registration, not to the
operation.
Fields§
§id: <V as Identities>::OpIdThe operation’s identity.
kind: OpKind<V>What it was.
outcome: Outcome<V>How it ended.
buffer: Option<B>Its owned buffer, or None for a registered-span operation.
context: CThe consumer’s context, handed back.
Trait Implementations§
Auto Trait Implementations§
impl<V, B, C> !RefUnwindSafe for OpCompletion<V, B, C>
impl<V, B, C> !UnwindSafe for OpCompletion<V, B, C>
impl<V, B, C> Freeze for OpCompletion<V, B, C>
impl<V, B, C> Send for OpCompletion<V, B, C>
impl<V, B, C> Sync for OpCompletion<V, B, C>
impl<V, B, C> Unpin for OpCompletion<V, B, C>
impl<V, B, C> UnsafeUnpin for OpCompletion<V, B, C>where
<V as Identities>::OpId: UnsafeUnpin,
OpKind<V>: UnsafeUnpin,
Outcome<V>: UnsafeUnpin,
Option<B>: UnsafeUnpin,
C: 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