pub struct CurrentWorkspace {
pub root: PathBuf,
pub workspace_id: Option<GrainId>,
pub reachable: bool,
pub sync: SyncStatusResult,
}Expand description
The workspace a server serves, as WORKSPACE_CURRENT and WORKSPACE_SELECT
report it.
Fields§
§root: PathBufIts root on this host.
workspace_id: Option<GrainId>Its identity across devices, when one has been minted. Read, never minted.
reachable: boolWhether the root still holds this application’s marker directory.
sync: SyncStatusResultIts replication state, as SYNC_STATUS reports it.
Trait Implementations§
Source§impl Clone for CurrentWorkspace
impl Clone for CurrentWorkspace
Source§impl Debug for CurrentWorkspace
impl Debug for CurrentWorkspace
Source§impl<'de> Deserialize<'de> for CurrentWorkspace
impl<'de> Deserialize<'de> for CurrentWorkspace
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 CurrentWorkspace
impl RefUnwindSafe for CurrentWorkspace
impl Send for CurrentWorkspace
impl Sync for CurrentWorkspace
impl Unpin for CurrentWorkspace
impl UnsafeUnpin for CurrentWorkspace
impl UnwindSafe for CurrentWorkspace
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