pub struct TileStreamer { /* private fields */ }Expand description
Progressive tile streamer
Implementations§
Source§impl TileStreamer
impl TileStreamer
Sourcepub fn set_quality(&mut self, quality: StreamingQuality)
pub fn set_quality(&mut self, quality: StreamingQuality)
Sets the streaming quality
Sourcepub fn set_strategy(&mut self, strategy: LoadStrategy)
pub fn set_strategy(&mut self, strategy: LoadStrategy)
Sets the load strategy
Sourcepub fn request_tile(&mut self, coord: TileCoord, timestamp: f64)
pub fn request_tile(&mut self, coord: TileCoord, timestamp: f64)
Requests a tile
Sourcepub fn complete_tile(
&mut self,
coord: TileCoord,
data: Vec<u8>,
load_time_ms: f64,
timestamp: f64,
) -> WasmResult<()>
pub fn complete_tile( &mut self, coord: TileCoord, data: Vec<u8>, load_time_ms: f64, timestamp: f64, ) -> WasmResult<()>
Marks a tile as completed
Sourcepub fn pending_count(&self) -> usize
pub fn pending_count(&self) -> usize
Returns the number of pending requests
Sourcepub const fn current_quality(&self) -> StreamingQuality
pub const fn current_quality(&self) -> StreamingQuality
Returns the current quality
Sourcepub fn stats(&self) -> StreamingStats
pub fn stats(&self) -> StreamingStats
Returns streaming statistics
Auto Trait Implementations§
impl Freeze for TileStreamer
impl RefUnwindSafe for TileStreamer
impl Send for TileStreamer
impl Sync for TileStreamer
impl Unpin for TileStreamer
impl UnsafeUnpin for TileStreamer
impl UnwindSafe for TileStreamer
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