pub struct SharedProviderConfig { /* private fields */ }Expand description
Shared provider configuration
This is an Arc-wrapped version of ProviderConfig for efficient sharing across multiple components without cloning.
Implementations§
Sourcepub fn new(config: ProviderConfig) -> Self
pub fn new(config: ProviderConfig) -> Self
Create a new shared configuration
Sourcepub fn get(&self) -> &ProviderConfig
pub fn get(&self) -> &ProviderConfig
Get a reference to the inner configuration
Methods from Deref<Target = ProviderConfig>§
Sourcepub fn retry_config(&self) -> RetryConfig
pub fn retry_config(&self) -> RetryConfig
Get the retry configuration, or default if not set
Trait Implementations§
Source§fn clone(&self) -> SharedProviderConfig
fn clone(&self) -> SharedProviderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn from(config: ProviderConfig) -> Self
fn from(config: ProviderConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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