pub enum RegistrationGate {
Ready,
Stopped,
}Expand description
Outcome of the startup registration gate (ensure_registered).
A clean stop signal (Ctrl-C / SIGTERM) that arrives before the
studio approves the worker is a routine shutdown, not a failure:
the pre-approval wait is the normal state of a freshly-installed
worker sitting in the studio’s approval queue. Surfacing it as a
distinct Stopped outcome lets run
exit 0 — so systemctl stop doesn’t mark the unit failed — and
skip the top-level tracing::error! that would otherwise ship a
spurious Sentry event on every clean stop of an unapproved worker.
An operator rejection, by contrast, stays a hard Err: it’s a
terminal state the operator must act on (register --reset).
Variants§
Ready
The worker is registered (already, or just approved); proceed to open the WS session.
Stopped
A stop signal arrived before approval; shut down cleanly.
Trait Implementations§
Source§impl Clone for RegistrationGate
impl Clone for RegistrationGate
Source§fn clone(&self) -> RegistrationGate
fn clone(&self) -> RegistrationGate
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 RegistrationGate
Source§impl Debug for RegistrationGate
impl Debug for RegistrationGate
impl Eq for RegistrationGate
Source§impl PartialEq for RegistrationGate
impl PartialEq for RegistrationGate
Source§fn eq(&self, other: &RegistrationGate) -> bool
fn eq(&self, other: &RegistrationGate) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RegistrationGate
Auto Trait Implementations§
impl Freeze for RegistrationGate
impl RefUnwindSafe for RegistrationGate
impl Send for RegistrationGate
impl Sync for RegistrationGate
impl Unpin for RegistrationGate
impl UnsafeUnpin for RegistrationGate
impl UnwindSafe for RegistrationGate
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
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.