pub enum LivenessSource {
Pid,
Listing,
}Expand description
Which source of liveness is authoritative for a session (DESIGN.md §8), recorded by the code that spawned the process because only it knows what it spawned. The two differ in one respect: whether the pid the session row holds is the work itself or a launcher that spawned it and exited.
Variants§
Pid
The recorded pid is the work — a foreground child Voro owns, or an
agent with no sessions verb, where the spawned pid is the only source
there is. kill -0 answers.
Listing
The work belongs to a supervisor the launch handed it to, so the
recorded pid dies at birth and only the agent’s own sessions listing
can say whether the session is still working.
Implementations§
Trait Implementations§
Source§impl Clone for LivenessSource
impl Clone for LivenessSource
Source§fn clone(&self) -> LivenessSource
fn clone(&self) -> LivenessSource
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 LivenessSource
Source§impl Debug for LivenessSource
impl Debug for LivenessSource
Source§impl Display for LivenessSource
impl Display for LivenessSource
impl Eq for LivenessSource
Source§impl FromSql for LivenessSource
impl FromSql for LivenessSource
Source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
Source§impl Hash for LivenessSource
impl Hash for LivenessSource
Source§impl PartialEq for LivenessSource
impl PartialEq for LivenessSource
impl StructuralPartialEq for LivenessSource
Source§impl ToSql for LivenessSource
impl ToSql for LivenessSource
Source§fn to_sql(&self) -> Result<ToSqlOutput<'_>>
fn to_sql(&self) -> Result<ToSqlOutput<'_>>
Converts Rust value to SQLite value
Auto Trait Implementations§
impl Freeze for LivenessSource
impl RefUnwindSafe for LivenessSource
impl Send for LivenessSource
impl Sync for LivenessSource
impl Unpin for LivenessSource
impl UnsafeUnpin for LivenessSource
impl UnwindSafe for LivenessSource
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
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<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.