MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / view_snapshot

Function view_snapshot

libatomic/src/daemon/sandbox_wire.rs:80–86  ·  view source on GitHub ↗

`view`'s snapshot: its effective state (the fence) and its own Merkle state (diagnostic).

(view: &str, effective: &Hash, own: Option<&Hash>)

Source from the content-addressed store, hash-verified

78/// `view`'s snapshot: its effective state (the fence) and its own Merkle
79/// state (diagnostic).
80pub fn view_snapshot(view: &str, effective: &Hash, own: Option<&Hash>) -> pb::ViewSnapshot {
81 pb::ViewSnapshot {
82 view: Some(view_ref(view)),
83 effective_state: Some(hash_proto(effective)),
84 own_merkle: own.map(hash_proto),
85 }
86}
87
88/// The effective state a snapshot fences on, base32 (what
89/// `Repository::insert_submitted_change` compares).

Calls 2

view_refFunction · 0.70
hash_protoFunction · 0.70