pub enum DaemonState {
Running {
pid: u32,
},
StalePid {
pid: u32,
},
None,
}Expand description
Liveness of a session’s sync daemon, derived from its daemon.pid file +
the pid-alive check crate::session::list_sessions already computes.
Variants§
Running
daemon.pid present and the recorded pid is a live process.
StalePid
daemon.pid present but the process is gone (a true husk).
None
No daemon.pid file.
Implementations§
Source§impl DaemonState
impl DaemonState
pub fn is_running(&self) -> bool
Trait Implementations§
Source§impl Clone for DaemonState
impl Clone for DaemonState
Source§fn clone(&self) -> DaemonState
fn clone(&self) -> DaemonState
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 moreSource§impl Debug for DaemonState
impl Debug for DaemonState
impl Eq for DaemonState
Source§impl PartialEq for DaemonState
impl PartialEq for DaemonState
Source§impl Serialize for DaemonState
impl Serialize for DaemonState
impl StructuralPartialEq for DaemonState
Auto Trait Implementations§
impl Freeze for DaemonState
impl RefUnwindSafe for DaemonState
impl Send for DaemonState
impl Sync for DaemonState
impl Unpin for DaemonState
impl UnsafeUnpin for DaemonState
impl UnwindSafe for DaemonState
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,
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.