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>,
}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).
Implementations§
Source§impl SyncStatusResult
impl SyncStatusResult
Sourcepub fn not_synced() -> SyncStatusResult
pub fn not_synced() -> SyncStatusResult
The state of a workspace nothing syncs.
Trait Implementations§
Source§impl Clone for SyncStatusResult
impl Clone for SyncStatusResult
Source§impl Debug for SyncStatusResult
impl Debug for SyncStatusResult
Source§impl<'de> Deserialize<'de> for SyncStatusResult
impl<'de> Deserialize<'de> for SyncStatusResult
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SyncStatusResult
impl RefUnwindSafe for SyncStatusResult
impl Send for SyncStatusResult
impl Sync for SyncStatusResult
impl Unpin for SyncStatusResult
impl UnsafeUnpin for SyncStatusResult
impl UnwindSafe for SyncStatusResult
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