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

Method new

atomic-objects/src/sync.rs:146–152  ·  view source on GitHub ↗

Construct a record. The caller supplies the already-computed content key (producers hash once on the way out of redb).

(family: ObjectFamily, key: impl Into<String>, bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

144 /// Construct a record. The caller supplies the already-computed content key
145 /// (producers hash once on the way out of redb).
146 pub fn new(family: ObjectFamily, key: impl Into<String>, bytes: Vec<u8>) -> Self {
147 ObjectRecord {
148 family,
149 key: key.into(),
150 bytes,
151 }
152 }
153}
154
155/// A view-ref compare-and-swap in a push. Moves `name` from the client's

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected