pub struct TileUpdateManager { /* private fields */ }Expand description
Tile update manager
Implementations§
Source§impl TileUpdateManager
impl TileUpdateManager
Sourcepub fn add_update(&self, update: TileUpdate) -> Result<()>
pub fn add_update(&self, update: TileUpdate) -> Result<()>
Add a tile update
Sourcepub fn get_updates(&self, coord: &TileCoord) -> Vec<TileUpdate>
pub fn get_updates(&self, coord: &TileCoord) -> Vec<TileUpdate>
Get pending updates for a tile
Sourcepub fn get_all_updates(&self) -> HashMap<TileCoord, Vec<TileUpdate>>
pub fn get_all_updates(&self) -> HashMap<TileCoord, Vec<TileUpdate>>
Get all pending updates
Sourcepub fn clear_tile(&self, coord: &TileCoord)
pub fn clear_tile(&self, coord: &TileCoord)
Clear updates for a tile
Sourcepub fn pending_count(&self) -> usize
pub fn pending_count(&self) -> usize
Get pending update count
Sourcepub async fn stats(&self) -> TileUpdateManagerStats
pub async fn stats(&self) -> TileUpdateManagerStats
Get statistics
Auto Trait Implementations§
impl Freeze for TileUpdateManager
impl !RefUnwindSafe for TileUpdateManager
impl Send for TileUpdateManager
impl Sync for TileUpdateManager
impl Unpin for TileUpdateManager
impl UnsafeUnpin for TileUpdateManager
impl !UnwindSafe for TileUpdateManager
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