pub struct FeatureUpdateManager { /* private fields */ }Expand description
Feature update manager
Implementations§
Source§impl FeatureUpdateManager
impl FeatureUpdateManager
Sourcepub fn add_update(&self, update: FeatureUpdate) -> Result<()>
pub fn add_update(&self, update: FeatureUpdate) -> Result<()>
Add a feature update
Sourcepub fn get_updates(&self, layer: &str) -> Vec<FeatureUpdate>
pub fn get_updates(&self, layer: &str) -> Vec<FeatureUpdate>
Get pending updates for a layer
Sourcepub fn get_all_updates(&self) -> HashMap<String, Vec<FeatureUpdate>>
pub fn get_all_updates(&self) -> HashMap<String, Vec<FeatureUpdate>>
Get all pending updates
Sourcepub fn clear_layer(&self, layer: &str)
pub fn clear_layer(&self, layer: &str)
Clear updates for a layer
Sourcepub fn pending_count(&self) -> usize
pub fn pending_count(&self) -> usize
Get pending update count
Sourcepub fn layers_with_updates(&self) -> Vec<String>
pub fn layers_with_updates(&self) -> Vec<String>
Get layers with pending updates
Sourcepub async fn stats(&self) -> FeatureUpdateManagerStats
pub async fn stats(&self) -> FeatureUpdateManagerStats
Get statistics
Auto Trait Implementations§
impl Freeze for FeatureUpdateManager
impl !RefUnwindSafe for FeatureUpdateManager
impl Send for FeatureUpdateManager
impl Sync for FeatureUpdateManager
impl Unpin for FeatureUpdateManager
impl UnsafeUnpin for FeatureUpdateManager
impl !UnwindSafe for FeatureUpdateManager
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