pub struct DaemonPid {
pub schema: String,
pub pid: u32,
pub bin_path: String,
pub version: String,
pub started_at: String,
pub did: Option<String>,
pub relay_url: Option<String>,
}Expand description
Versioned daemon pid record — the JSON form written by 0.5.11+.
Fields§
§schema: StringSchema discriminator. Always wire-daemon-pid-v1 for now.
pid: u32§bin_path: StringAbsolute path of the binary that was exec’d. Catches today’s exact
bug: a stale 0.2.4 daemon process kept running under a symlink that
was repointed at 0.5.10 — wire --version says 0.5.10 but the
running daemon’s text in memory is still 0.2.4.
version: StringCARGO_PKG_VERSION captured at spawn. Compared against the CLI’s own version on every invocation; mismatch = loud warn.
started_at: StringRFC3339 timestamp of spawn.
did: Option<String>Self DID — catches multi-identity contamination (one user, two wire identities on same host, daemon launched as wrong one). Cheap field, expensive bug.
relay_url: Option<String>Relay this daemon was bound to at spawn. Catches daemon-bound-to- old-relay-after-migration drift.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DaemonPid
impl<'de> Deserialize<'de> for DaemonPid
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 DaemonPid
impl StructuralPartialEq for DaemonPid
Auto Trait Implementations§
impl Freeze for DaemonPid
impl RefUnwindSafe for DaemonPid
impl Send for DaemonPid
impl Sync for DaemonPid
impl Unpin for DaemonPid
impl UnsafeUnpin for DaemonPid
impl UnwindSafe for DaemonPid
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,
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.