MCPcopy Create free account
hub / github.com/cosdata/cosdata / get_data

Method get_data

src/models/chunked_list.rs:59–61  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

57 }
58
59 pub fn get_data(&self) -> Option<Item<T>> {
60 self.item.read().unwrap().data.clone()
61 }
62
63 pub fn set_data(&self, new_data: T) {
64 self.item.write().unwrap().data = Some(Arc::new(RwLock::new(new_data)));

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected