#[non_exhaustive]pub enum ProcessEventKind {
Start,
Online,
Exit,
Restart,
Reload,
Reloaded,
ReloadAbandoned,
Stop,
Delete,
Errored,
Unrecognized,
}Expand description
What happened to a sheep
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Start
Spawn initiated
Online
Became ready/online
Exit
Process exited
Restart
Restart initiated
Reload
A reload is replacing this instance: its replacement has been spawned into the same instance slot, and this one will be asked to go once that replacement is serving
Reloaded
This instance has replaced the one it was spawned to drain; that one is gone.
ReloadAbandoned
A reload gave up, so the instances it had not reached are left alone
The instance named is whichever one the abandonment left holding the
slot: still the app’s live instance if the reload gave up before
replacing it, or the replacement if that one went down instead.
info reflects that instance’s state at event time; read
info.status rather than assume it is live.
Stop
Stopped by request
Delete
Deregistered
Errored
Restart budget exhausted
Unrecognized
An event kind this build has not been taught.
Only ever produced by decoding: an unrecognized string falls through
to this variant via #[serde(other)] instead of failing the whole
frame. Nothing constructs one to send, and bark’s is_known_kind
refuses the spelling before a rule can name it. That is a call-site
invariant rather than a type-level one: #[serde(other)] governs
decoding only, so serializing this would emit "unrecognized".
Trait Implementations§
Source§impl Clone for ProcessEventKind
impl Clone for ProcessEventKind
Source§fn clone(&self) -> ProcessEventKind
fn clone(&self) -> ProcessEventKind
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 ProcessEventKind
Source§impl Debug for ProcessEventKind
impl Debug for ProcessEventKind
Source§impl<'de> Deserialize<'de> for ProcessEventKind
impl<'de> Deserialize<'de> for ProcessEventKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ProcessEventKind
Source§impl PartialEq for ProcessEventKind
impl PartialEq for ProcessEventKind
Source§impl Serialize for ProcessEventKind
impl Serialize for ProcessEventKind
impl StructuralPartialEq for ProcessEventKind
Auto Trait Implementations§
impl Freeze for ProcessEventKind
impl RefUnwindSafe for ProcessEventKind
impl Send for ProcessEventKind
impl Sync for ProcessEventKind
impl Unpin for ProcessEventKind
impl UnsafeUnpin for ProcessEventKind
impl UnwindSafe for ProcessEventKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.