#[non_exhaustive]pub enum TerminalConfirmation {
Required,
BestEffort,
}Expand description
What a streaming client is told when the task store does not confirm a terminal event the executor emitted.
A terminal event is unconfirmed when its write failed and a read back shows
the task is not in that state, when the store did not answer within the
queue’s write timeout, or when the processor that writes it had stopped.
See HandlerLimits::terminal_confirmation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Required
The stream ends with an UNAVAILABLE error: the completion could not
be confirmed, and GetTask says what the store holds. A client is
never told a task finished that the store does not record as finished.
The default.
BestEffort
The terminal event is delivered as the executor emitted it whether or
not the store confirmed it, as every release before 0.16.0 did. The
stream and GetTask can then disagree. For a deployment that prefers
an answer to a truthful one.
Trait Implementations§
Source§impl Clone for TerminalConfirmation
impl Clone for TerminalConfirmation
Source§fn clone(&self) -> TerminalConfirmation
fn clone(&self) -> TerminalConfirmation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TerminalConfirmation
Source§impl Debug for TerminalConfirmation
impl Debug for TerminalConfirmation
Source§impl Default for TerminalConfirmation
impl Default for TerminalConfirmation
Source§fn default() -> TerminalConfirmation
fn default() -> TerminalConfirmation
impl Eq for TerminalConfirmation
Source§impl PartialEq for TerminalConfirmation
impl PartialEq for TerminalConfirmation
impl StructuralPartialEq for TerminalConfirmation
Auto Trait Implementations§
impl Forget for TerminalConfirmation
impl Freeze for TerminalConfirmation
impl Move for TerminalConfirmation
impl RefUnwindSafe for TerminalConfirmation
impl Send for TerminalConfirmation
impl Sync for TerminalConfirmation
impl Unpin for TerminalConfirmation
impl UnsafeUnpin for TerminalConfirmation
impl UnwindSafe for TerminalConfirmation
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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> ⓘ
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> ⓘ
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].