pub struct MultiResolutionStreamer { /* private fields */ }Expand description
Multi-resolution tile streamer
Implementations§
Source§impl MultiResolutionStreamer
impl MultiResolutionStreamer
Sourcepub fn add_resolution(&mut self, resolution: u32, buffer_size_mb: usize)
pub fn add_resolution(&mut self, resolution: u32, buffer_size_mb: usize)
Adds a streamer for a resolution
Sourcepub fn request_tile(
&mut self,
resolution: u32,
coord: TileCoord,
timestamp: f64,
)
pub fn request_tile( &mut self, resolution: u32, coord: TileCoord, timestamp: f64, )
Requests a tile at a specific resolution
Sourcepub fn get_tile(&mut self, resolution: u32, coord: &TileCoord) -> Option<&[u8]>
pub fn get_tile(&mut self, resolution: u32, coord: &TileCoord) -> Option<&[u8]>
Gets a tile at a specific resolution
Sourcepub fn all_stats(&self) -> HashMap<u32, StreamingStats>
pub fn all_stats(&self) -> HashMap<u32, StreamingStats>
Returns statistics for all resolutions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultiResolutionStreamer
impl RefUnwindSafe for MultiResolutionStreamer
impl Send for MultiResolutionStreamer
impl Sync for MultiResolutionStreamer
impl Unpin for MultiResolutionStreamer
impl UnsafeUnpin for MultiResolutionStreamer
impl UnwindSafe for MultiResolutionStreamer
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