pub struct CapsuleFetchResult {
pub store: String,
pub root: String,
pub status: String,
}Expand description
control.capsule.fetch — the P2P pull acknowledgement.
This is a STARTED/ALREADY-CACHED acknowledgement, not a completion report: unlike
control.sync.trigger’s §21 HTTP fetch (synchronous, single hop), a P2P pull recursively
discovers a holder and may stream through several onion hops, so it can take arbitrarily
long. A caller wanting to know when the bytes actually land polls control.hostedStores.status
for the store, the same way control.hostedStores.pin’s pre-fetch is observed today.
Fields§
§store: StringThe store id the fetch was requested for.
root: StringThe capsule root requested.
status: StringThe outcome: "started" (a P2P pull was launched), "already_cached" (the capsule was
already on disk and no pull was needed), or "unavailable" (recursive discovery found no
holder to pull from right now — the caller may retry later).
Trait Implementations§
Source§impl Clone for CapsuleFetchResult
impl Clone for CapsuleFetchResult
Source§fn clone(&self) -> CapsuleFetchResult
fn clone(&self) -> CapsuleFetchResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more