pub struct LastSyncRecord {
pub schema: String,
pub ts: String,
pub push_n: usize,
pub pull_n: usize,
pub rejected_n: usize,
}Expand description
Versioned record written by wire daemon after each successful sync
cycle. Readers (wire status, mcp__wire__wire_status,
mcp__wire__wire_send annotations) inspect it to surface
“is the sync loop alive RIGHT NOW?” — distinct from “is there a
process with wire daemon in its cmdline?” (the existing pidfile-
alive check), which can be true while the loop has been wedged for
minutes. v0.14.2 (#162): closes the silent-send class where the MCP
surface reports status:"queued" while no one is actually pushing.
Fields§
§schema: StringSchema discriminator. wire-daemon-last-sync-v1.
ts: StringRFC3339 UTC timestamp of the most recently completed cycle.
push_n: usizeNumber of outbox events pushed in this cycle.
pull_n: usizeNumber of inbox events pulled (verified + written) in this cycle.
rejected_n: usizeNumber of inbox events rejected by signature/cursor checks.
Trait Implementations§
Source§impl Clone for LastSyncRecord
impl Clone for LastSyncRecord
Source§fn clone(&self) -> LastSyncRecord
fn clone(&self) -> LastSyncRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LastSyncRecord
impl Debug for LastSyncRecord
Source§impl<'de> Deserialize<'de> for LastSyncRecord
impl<'de> Deserialize<'de> for LastSyncRecord
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 LastSyncRecord
Source§impl PartialEq for LastSyncRecord
impl PartialEq for LastSyncRecord
Source§fn eq(&self, other: &LastSyncRecord) -> bool
fn eq(&self, other: &LastSyncRecord) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for LastSyncRecord
impl Serialize for LastSyncRecord
impl StructuralPartialEq for LastSyncRecord
Auto Trait Implementations§
impl Freeze for LastSyncRecord
impl RefUnwindSafe for LastSyncRecord
impl Send for LastSyncRecord
impl Sync for LastSyncRecord
impl Unpin for LastSyncRecord
impl UnsafeUnpin for LastSyncRecord
impl UnwindSafe for LastSyncRecord
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.