pub struct StreamBuffer { /* private fields */ }Expand description
Stream buffer for managing loaded tiles
Implementations§
Source§impl StreamBuffer
impl StreamBuffer
Sourcepub fn add(&mut self, coord: TileCoord, data: Vec<u8>) -> WasmResult<()>
pub fn add(&mut self, coord: TileCoord, data: Vec<u8>) -> WasmResult<()>
Adds a tile to the buffer
Sourcepub fn stats(&self) -> StreamBufferStats
pub fn stats(&self) -> StreamBufferStats
Returns buffer statistics
Trait Implementations§
Source§impl Clone for StreamBuffer
impl Clone for StreamBuffer
Source§fn clone(&self) -> StreamBuffer
fn clone(&self) -> StreamBuffer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamBuffer
impl RefUnwindSafe for StreamBuffer
impl Send for StreamBuffer
impl Sync for StreamBuffer
impl Unpin for StreamBuffer
impl UnsafeUnpin for StreamBuffer
impl UnwindSafe for StreamBuffer
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