pub struct RemoteSettingsService { /* private fields */ }
Expand description
Internal Remote settings service API
Implementations§
source§impl RemoteSettingsService
impl RemoteSettingsService
sourcepub fn new(storage_dir: String, config: RemoteSettingsConfig2) -> Result<Self>
pub fn new(storage_dir: String, config: RemoteSettingsConfig2) -> Result<Self>
Construct a RemoteSettingsService
This is typically done early in the application-startup process
sourcepub fn make_client(
&self,
collection_name: String,
context: Option<RemoteSettingsContext>,
) -> Result<Arc<RemoteSettingsClient>>
pub fn make_client( &self, collection_name: String, context: Option<RemoteSettingsContext>, ) -> Result<Arc<RemoteSettingsClient>>
Create a new Remote Settings client
sourcepub fn update_config(&self, config: RemoteSettingsConfig2) -> Result<()>
pub fn update_config(&self, config: RemoteSettingsConfig2) -> Result<()>
Update the remote settings config
This will cause all current and future clients to use new config and will delete any stored records causing the clients to return new results from the new config.
Auto Trait Implementations§
impl !Freeze for RemoteSettingsService
impl !RefUnwindSafe for RemoteSettingsService
impl Send for RemoteSettingsService
impl Sync for RemoteSettingsService
impl Unpin for RemoteSettingsService
impl !UnwindSafe for RemoteSettingsService
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more