pub struct CachedTile {
pub key: TileKey,
pub data: Vec<u8>,
pub etag: String,
pub created_at: u64,
pub accessed_at: u64,
pub access_count: u64,
pub size_bytes: u64,
pub encoding: TileEncoding,
}Expand description
A tile stored in the cache together with its metadata.
Fields§
§key: TileKeyThe tile’s unique key.
data: Vec<u8>Raw tile bytes.
etag: StringETag string (quoted FNV-1a hex).
created_at: u64Unix timestamp when the tile was cached.
accessed_at: u64Unix timestamp of the most recent access.
access_count: u64Number of times this tile has been accessed (starts at 1 on creation).
size_bytes: u64Size of data in bytes.
encoding: TileEncodingContent-encoding of data.
Implementations§
Trait Implementations§
Source§impl Clone for CachedTile
impl Clone for CachedTile
Source§fn clone(&self) -> CachedTile
fn clone(&self) -> CachedTile
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 CachedTile
impl RefUnwindSafe for CachedTile
impl Send for CachedTile
impl Sync for CachedTile
impl Unpin for CachedTile
impl UnsafeUnpin for CachedTile
impl UnwindSafe for CachedTile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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