pub struct Completion<K, S, Context = ()> {
pub context: Context,
pub delivery: Delivery<K, S>,
pub valid: bool,
}Expand description
Completed consumer validation for a delivery.
Fields§
§context: ContextResolver-specific context associated with the delivery attempt.
delivery: Delivery<K, S>Key and subscribers that were passed to the consumer.
valid: boolWhether the consumer accepted the response as valid for the key.
Trait Implementations§
Source§impl<K: Clone, S: Clone, Context: Clone> Clone for Completion<K, S, Context>
impl<K: Clone, S: Clone, Context: Clone> Clone for Completion<K, S, Context>
Source§fn clone(&self) -> Completion<K, S, Context>
fn clone(&self) -> Completion<K, S, Context>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K: PartialEq, S: PartialEq, Context: PartialEq> PartialEq for Completion<K, S, Context>
impl<K: PartialEq, S: PartialEq, Context: PartialEq> PartialEq for Completion<K, S, Context>
Source§fn eq(&self, other: &Completion<K, S, Context>) -> bool
fn eq(&self, other: &Completion<K, S, Context>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<K: Eq, S: Eq, Context: Eq> Eq for Completion<K, S, Context>
impl<K, S, Context> StructuralPartialEq for Completion<K, S, Context>
Auto Trait Implementations§
impl<K, S, Context> Freeze for Completion<K, S, Context>
impl<K, S, Context> RefUnwindSafe for Completion<K, S, Context>
impl<K, S, Context> Send for Completion<K, S, Context>
impl<K, S, Context> Sync for Completion<K, S, Context>
impl<K, S, Context> Unpin for Completion<K, S, Context>
impl<K, S, Context> UnsafeUnpin for Completion<K, S, Context>where
Context: UnsafeUnpin,
K: UnsafeUnpin,
impl<K, S, Context> UnwindSafe for Completion<K, S, Context>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more