pub struct LoadResult {
pub root: PathBuf,
pub current_bytes: u64,
pub state: WorkspaceState,
}Expand description
daemon/load success result payload.
Serialised under the result field of ResponseEnvelope. Living
in the leaf protocol crate lets both the daemon (writer) and
sqry-daemon-client (reader) share a single typed definition —
clients can serde_json::from_value::<ResponseEnvelope<LoadResult>>
and get compile-time schema checking instead of stringly-typed
serde_json::Value::get lookups.
Fields§
§root: PathBufThe canonicalised workspace root path that the daemon loaded.
current_bytes: u64Resident graph memory footprint for the loaded workspace, in
bytes. Matches LoadedWorkspace::heap_bytes() at the moment of
the response.
state: WorkspaceStateThe canonical workspace lifecycle state after the load
completes. Always WorkspaceState::Loaded on the successful
daemon/load path — the field is typed so clients do not have
to re-parse the string.
Trait Implementations§
Source§impl Clone for LoadResult
impl Clone for LoadResult
Source§fn clone(&self) -> LoadResult
fn clone(&self) -> LoadResult
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 LoadResult
impl Debug for LoadResult
Source§impl<'de> Deserialize<'de> for LoadResult
impl<'de> Deserialize<'de> for LoadResult
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>,
Source§impl PartialEq for LoadResult
impl PartialEq for LoadResult
Source§fn eq(&self, other: &LoadResult) -> bool
fn eq(&self, other: &LoadResult) -> bool
self and other values to be equal, and is used by ==.