pub struct UpdateScheduler { /* private fields */ }
Expand description
Manages batched updates for improved performance
Implementations§
Source§impl UpdateScheduler
impl UpdateScheduler
Sourcepub fn schedule_update(&mut self, component_id: ComponentId)
pub fn schedule_update(&mut self, component_id: ComponentId)
Schedule a component for update
Sourcepub fn has_pending_update(&self, component_id: ComponentId) -> bool
pub fn has_pending_update(&self, component_id: ComponentId) -> bool
Check if a component has pending updates
Sourcepub fn clear_pending(&mut self, component_id: ComponentId)
pub fn clear_pending(&mut self, component_id: ComponentId)
Clear pending updates for a component
Sourcepub fn get_pending_components(&self) -> Vec<ComponentId>
pub fn get_pending_components(&self) -> Vec<ComponentId>
Get all components with pending updates
Trait Implementations§
Source§impl Debug for UpdateScheduler
impl Debug for UpdateScheduler
Source§impl Default for UpdateScheduler
impl Default for UpdateScheduler
Source§fn default() -> UpdateScheduler
fn default() -> UpdateScheduler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateScheduler
impl RefUnwindSafe for UpdateScheduler
impl Send for UpdateScheduler
impl Sync for UpdateScheduler
impl Unpin for UpdateScheduler
impl UnwindSafe for UpdateScheduler
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