Skip to main content

lookup

Function lookup 

Source
pub fn lookup(source_type: &str) -> Option<ProviderFactory>
Expand description

Return the ProviderFactory for source_type, or None if no backend has registered for that discriminator.

This function walks RELEASE_PROVIDERS linearly. The slice is small (≤ 10 entries in practice); the cost is negligible compared to the network round-trip that follows.