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

Method set_data

src/models/chunked_list.rs:63–65  ·  view source on GitHub ↗
(&self, new_data: T)

Source from the content-addressed store, hash-verified

61 }
62
63 pub fn set_data(&self, new_data: T) {
64 self.item.write().unwrap().data = Some(Arc::new(RwLock::new(new_data)));
65 }
66
67 pub fn set_offset(&self, new_offset: Option<FileOffset>) {
68 self.item.write().unwrap().offset = new_offset;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected