pub struct WmsTileStreamer {
pub slots: [TextureArraySlot; 32],
pub current_frame: u64,
}Expand description
WMS / WMTS Tile Array Cache Manager.
Fields§
§slots: [TextureArraySlot; 32]§current_frame: u64Implementations§
Source§impl WmsTileStreamer
impl WmsTileStreamer
Sourcepub fn advance_frame(&mut self)
pub fn advance_frame(&mut self)
Advances frame counter for LRU eviction.
Sourcepub fn lookup_tile(&mut self, coord: &TileCoordinate) -> Option<u32>
pub fn lookup_tile(&mut self, coord: &TileCoordinate) -> Option<u32>
Looks up a tile in the cache; returns layer slice index in the GPU 2D Texture Array.
Sourcepub fn allocate_slot(&mut self, coord: &TileCoordinate) -> u32
pub fn allocate_slot(&mut self, coord: &TileCoordinate) -> u32
Allocates or evicts a slot for a newly fetched tile coordinate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WmsTileStreamer
impl RefUnwindSafe for WmsTileStreamer
impl Send for WmsTileStreamer
impl Sync for WmsTileStreamer
impl Unpin for WmsTileStreamer
impl UnsafeUnpin for WmsTileStreamer
impl UnwindSafe for WmsTileStreamer
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.