pub enum TransitionWorkerRole {
Auto,
CanonicalDrain,
QueueStorageTarget,
}Expand description
Temporary execution role used during a storage transition.
This is not intended as a long-term “run either backend forever” feature.
It exists so a 0.6 rollout can keep some runtimes draining canonical
backlog while other runtimes are already prepared to execute queue-storage
work as soon as routing flips.
Variants§
Auto
Follow awa.storage_status():
canonical in canonical / prepared,
queue storage in mixed_transition / active.
CanonicalDrain
Stay on canonical execution even after routing flips.
QueueStorageTarget
Run queue storage immediately, even before routing flips.
Trait Implementations§
Source§impl Clone for TransitionWorkerRole
impl Clone for TransitionWorkerRole
Source§fn clone(&self) -> TransitionWorkerRole
fn clone(&self) -> TransitionWorkerRole
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 TransitionWorkerRole
Source§impl Debug for TransitionWorkerRole
impl Debug for TransitionWorkerRole
Source§impl Default for TransitionWorkerRole
impl Default for TransitionWorkerRole
Source§fn default() -> TransitionWorkerRole
fn default() -> TransitionWorkerRole
Returns the “default value” for a type. Read more
impl Eq for TransitionWorkerRole
Source§impl From<TransitionWorkerRole> for TransitionRole
impl From<TransitionWorkerRole> for TransitionRole
Source§fn from(role: TransitionWorkerRole) -> Self
fn from(role: TransitionWorkerRole) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransitionWorkerRole
impl PartialEq for TransitionWorkerRole
impl StructuralPartialEq for TransitionWorkerRole
Auto Trait Implementations§
impl Freeze for TransitionWorkerRole
impl RefUnwindSafe for TransitionWorkerRole
impl Send for TransitionWorkerRole
impl Sync for TransitionWorkerRole
impl Unpin for TransitionWorkerRole
impl UnsafeUnpin for TransitionWorkerRole
impl UnwindSafe for TransitionWorkerRole
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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