pub enum RejectReaction {
Temporary,
WorkerSpecific,
CodeNotThereYet,
}Expand description
How the master reacts to a rejection (see archive/PROJECT.md, Task rejections). A rejection never uses up a retry.
Variants§
Temporary
A momentary condition: requeue at once, any worker.
WorkerSpecific
This worker can’t run it: don’t offer this attempt to it again; when every eligible
worker rejected it, the task is unschedulable.
CodeNotThereYet
The code isn’t on the worker yet (git-sync lagging): retry after roughly the sync interval plus settle time, any worker.
Trait Implementations§
Source§impl Clone for RejectReaction
impl Clone for RejectReaction
Source§fn clone(&self) -> RejectReaction
fn clone(&self) -> RejectReaction
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 moreimpl Copy for RejectReaction
Source§impl Debug for RejectReaction
impl Debug for RejectReaction
impl Eq for RejectReaction
Source§impl Hash for RejectReaction
impl Hash for RejectReaction
Source§impl PartialEq for RejectReaction
impl PartialEq for RejectReaction
impl StructuralPartialEq for RejectReaction
Auto Trait Implementations§
impl Freeze for RejectReaction
impl RefUnwindSafe for RejectReaction
impl Send for RejectReaction
impl Sync for RejectReaction
impl Unpin for RejectReaction
impl UnsafeUnpin for RejectReaction
impl UnwindSafe for RejectReaction
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,
§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
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
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>,
Applies the layer to a service and wraps it in [
Layered].