#[non_exhaustive]pub enum ProcessEventKind {
Start,
Online,
Exit,
Restart,
Reload,
Reloaded,
ReloadAbandoned,
Stop,
Delete,
Errored,
}Expand description
What happened to a sheep
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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
Trait Implementations§
Source§impl Clone for ProcessEventKind
impl Clone for ProcessEventKind
Source§fn clone(&self) -> ProcessEventKind
fn clone(&self) -> ProcessEventKind
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 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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.