• Home
  • Raw
  • Download

Lines Matching +full:map +full:- +full:cache

7 use crate::map::Map;
13 fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>; in clone_into_box()
16 /// a Map.
17 fn collect(&self) -> Result<Map<String, Value>>; in collect()
19 /// Collects all configuration properties to a provided cache.
20 fn collect_to(&self, cache: &mut Value) -> Result<()> { in collect_to()
23 .for_each(|(key, val)| set_value(cache, key, val)); in collect_to()
29 fn set_value(cache: &mut Value, key: &str, value: &Value) { in set_value()
32 Ok(expr) => expr.set(cache, value.clone()), in set_value()
35 _ => path::Expression::Identifier(key.to_string()).set(cache, value.clone()), in set_value()
47 /// For those reasons, it is left to other crates to implement runtime-specific or proprietary
55 … // Sync is supertrait due to https://docs.rs/async-trait/0.1.50/async_trait/index.html#dyn-traits
58 /// a Map as an async operations.
59 async fn collect(&self) -> Result<Map<String, Value>>; in collect()
61 /// Collects all configuration properties to a provided cache.
62 async fn collect_to(&self, cache: &mut Value) -> Result<()> { in collect_to()
66 .for_each(|(key, val)| set_value(cache, key, val)); in collect_to()
73 fn clone(&self) -> Self { in clone()
79 fn clone(&self) -> Self { in clone()
85 fn clone_into_box(&self) -> Box<dyn Source + Send + Sync> { in clone_into_box()
89 fn collect(&self) -> Result<Map<String, Value>> { in collect()
90 let mut cache: Value = Map::<String, Value>::new().into(); in collect() localVariable
93 source.collect_to(&mut cache)?; in collect()
96 if let ValueKind::Table(table) = cache.kind { in collect()
105 fn clone_into_box(&self) -> Box<dyn Source + Send + Sync> { in clone_into_box()
109 fn collect(&self) -> Result<Map<String, Value>> { in collect()
110 let mut cache: Value = Map::<String, Value>::new().into(); in collect() localVariable
113 source.collect_to(&mut cache)?; in collect()
116 if let ValueKind::Table(table) = cache.kind { in collect()
128 fn clone_into_box(&self) -> Box<dyn Source + Send + Sync> { in clone_into_box()
132 fn collect(&self) -> Result<Map<String, Value>> { in collect()
133 let mut cache: Value = Map::<String, Value>::new().into(); in collect() localVariable
136 source.collect_to(&mut cache)?; in collect()
139 if let ValueKind::Table(table) = cache.kind { in collect()