pub enum Switch {
CaughtUp,
Now,
Never,
}Expand description
When a membership that names another deployment than the one serving its service switches
to it (Manifest::switch, App::switch). See the how-to “Deployments and rollbacks”.
Variants§
CaughtUp
Once the deployment has caught up (the default), and only to a deployment that never
served before: its listed workers are connected and its read models within the kernel’s
--deployment-switch-lag of the newest event. Until then the kernel refuses it
(not_caught_up); an app runs beside the serving deployment meanwhile and applies again
until it switches. A deployment that served before (it wrote events) is never switched
back to this way (served_before): its app runs beside, as with Switch::Never,
until an operator rolls back (kernable apply --deployment). So an older deployment’s
app that restarts during a rolling deploy does not take the service back.
Now
At once, caught up or not (kernable apply --force).
Never
Never by itself: the membership applies only while its deployment serves already (or
the service has none yet); otherwise the kernel refuses it (not_serving). An app runs
beside the serving deployment until an operator switches (kernable apply --deployment).
Implementations§
Trait Implementations§
impl Copy for Switch
impl Eq for Switch
impl StructuralPartialEq for Switch
Auto Trait Implementations§
impl Forget for Switch
impl Freeze for Switch
impl Move for Switch
impl RefUnwindSafe for Switch
impl Send for Switch
impl Sync for Switch
impl Unpin for Switch
impl UnsafeUnpin for Switch
impl UnwindSafe for Switch
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request