MCPcopy Create free account
hub / github.com/Rustixir/darkbird / gets

Method gets

src/darkbird/database.rs:224–246  ·  view source on GitHub ↗
(&self, list: Vec<&K>)

Source from the content-addressed store, hash-verified

222
223 #[inline]
224 pub fn gets<'a, K, Doc>(&self, list: Vec<&K>) -> Result<Vec<Ref<K, Doc>>, SessionResult>
225 where
226 Doc: Serialize + DeserializeOwned + Clone + Send + 'static + Document,
227 K: Serialize
228 + DeserializeOwned
229 + PartialOrd
230 + Ord
231 + PartialEq
232 + Eq
233 + Hash
234 + Clone
235 + Send
236 + Sync
237 + 'static
238 {
239 match self.datastores.get::<Storage<K, Doc>>() {
240 None => Err(SessionResult::DataStoreNotFound),
241 Some(datastore) => {
242 let res = datastore.gets(list);
243 Ok(res)
244 }
245 }
246 }
247
248
249 #[inline]

Callers 1

vec_getsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected