pub struct UpdateBatcher { /* private fields */ }
Expand description
Batched update system for performance optimization
Implementations§
Source§impl UpdateBatcher
impl UpdateBatcher
pub fn new(batch_timeout: Duration, max_batch_size: usize) -> Self
pub fn queue_update(&self, component_id: ComponentId, changes: StateChanges)
pub fn flush_updates(&self) -> HashMap<ComponentId, Vec<StateChanges>>
pub fn should_flush(&self, component_id: ComponentId) -> bool
Auto Trait Implementations§
impl !Freeze for UpdateBatcher
impl RefUnwindSafe for UpdateBatcher
impl Send for UpdateBatcher
impl Sync for UpdateBatcher
impl Unpin for UpdateBatcher
impl UnwindSafe for UpdateBatcher
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