| 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] |