Skip to main content

OpCompletion

Struct OpCompletion 

Source
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>::OpId

The 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: C

The consumer’s context, handed back.

Trait Implementations§

Source§

impl<V, B, C> Debug for OpCompletion<V, B, C>
where V: Debug + Identities, B: Debug, C: Debug, <V as Identities>::OpId: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

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>
where <V as Identities>::OpId: Freeze, OpKind<V>: Freeze, Outcome<V>: Freeze, Option<B>: Freeze, C: Freeze,

§

impl<V, B, C> Send for OpCompletion<V, B, C>
where <V as Identities>::OpId: Send, OpKind<V>: Send, Outcome<V>: Send, Option<B>: Send, C: Send,

§

impl<V, B, C> Sync for OpCompletion<V, B, C>
where <V as Identities>::OpId: Sync, OpKind<V>: Sync, Outcome<V>: Sync, Option<B>: Sync, C: Sync,

§

impl<V, B, C> Unpin for OpCompletion<V, B, C>
where <V as Identities>::OpId: Unpin, OpKind<V>: Unpin, Outcome<V>: Unpin, Option<B>: Unpin, C: Unpin,

§

impl<V, B, C> UnsafeUnpin for OpCompletion<V, B, C>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.