pub struct ProviderRegistry { /* private fields */ }Implementations§
Source§impl ProviderRegistry
impl ProviderRegistry
pub fn with_builtins() -> Self
pub fn new(default_provider_id: impl Into<String>) -> Self
pub fn register<T>(&mut self, adapter: T)where
T: ProviderAdapterV1 + 'static,
pub fn iter(&self) -> impl Iterator<Item = (&str, &dyn ProviderAdapterV1)> + '_
pub fn get(&self, provider_id: &str) -> Option<&dyn ProviderAdapterV1>
pub fn default_provider_id(&self) -> Option<&str>
pub fn resolve_selection( &self, cli_override: Option<&str>, ) -> Result<ProviderSelection, ResolveProviderError>
pub fn resolve_selection_with_env( &self, cli_override: Option<&str>, env_override: Option<&str>, ) -> Result<ProviderSelection, ResolveProviderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProviderRegistry
impl !RefUnwindSafe for ProviderRegistry
impl Send for ProviderRegistry
impl Sync for ProviderRegistry
impl Unpin for ProviderRegistry
impl UnsafeUnpin for ProviderRegistry
impl !UnwindSafe for ProviderRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more