()
| 286 | |
| 287 | impl ProviderRegistry { |
| 288 | pub fn new() -> Self { |
| 289 | Self { |
| 290 | providers: HashMap::new(), |
| 291 | provider_info: HashMap::new(), |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | pub fn register<P: Provider + 'static>(&mut self, provider: P) { |
| 296 | let id = provider.id().to_string(); |