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

Function view_snapshot

libatomic/src/daemon/sandbox_wire.rs:75–81  ·  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

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

Callers 6

submitMethod · 0.85
current_snapshotFunction · 0.85
materializeMethod · 0.85
submitMethod · 0.85

Calls 2

view_refFunction · 0.70
hash_protoFunction · 0.70