pub struct GlobalConfigs { /* private fields */ }
Implementations§
Source§impl GlobalConfigs
impl GlobalConfigs
pub fn get_instance(sdk_key: &str) -> Arc<GlobalConfigs>
pub fn set_sdk_configs(&self, new_configs: HashMap<String, DynamicValue>)
pub fn set_diagnostics_sampling_rates( &self, new_sampling_rate: HashMap<String, f64>, )
pub fn use_sdk_config_value<T>( &self, key: &str, f: impl FnOnce(Option<&DynamicValue>) -> T, ) -> T
pub fn use_diagnostics_sampling_rate<T>( &self, key: &str, f: impl FnOnce(Option<&f64>) -> T, ) -> T
Auto Trait Implementations§
impl !Freeze for GlobalConfigs
impl !RefUnwindSafe for GlobalConfigs
impl Send for GlobalConfigs
impl Sync for GlobalConfigs
impl Unpin for GlobalConfigs
impl UnwindSafe for GlobalConfigs
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