pub struct SyncStatusResult {
pub enabled: bool,
pub workspace_id: Option<GrainId>,
pub peers: usize,
pub paused: Option<String>,
pub last_error: Option<String>,
pub bridge_available: bool,
pub topology: Topology,
pub embedding: Option<EmbeddingProgress>,
pub pending_delivery: bool,
pub acknowledging_peers: usize,
}Expand description
Result of SYNC_STATUS.
Fields§
§enabled: boolWhether this workspace is synced.
workspace_id: Option<GrainId>Its identity across devices, when it is.
peers: usizeHow many other devices the workgroup has.
paused: Option<String>Why replication is paused, if it is.
last_error: Option<String>The last failure, if any.
bridge_available: boolWhether the bridge is reachable. false does not mean the app server is down.
topology: TopologyHow the workspace is wired to its peers. Absent from older servers: a mesh.
embedding: Option<EmbeddingProgress>How far embedding has got, when this host embeds (#188).
pending_delivery: boolSome edit this device made since sync started on this server has not reached any
peer yet. BackendEvent::SyncDelivered is sent when it has.
acknowledging_peers: usizeHow many peers have a live session open that confirms what it is sent. With none, a pending edit is confirmed only by the next session’s exchange — a peer from before confirmations never confirms a live push.
Implementations§
Source§impl SyncStatusResult
impl SyncStatusResult
Sourcepub fn not_synced() -> SyncStatusResult
pub fn not_synced() -> SyncStatusResult
The state of a workspace nothing syncs.