pub struct TileUpdate {
pub coord: TileCoord,
pub update_type: TileUpdateType,
pub data: Vec<u8>,
pub format: String,
pub delta: Option<Vec<u8>>,
pub timestamp: i64,
}Expand description
Tile update
Fields§
§coord: TileCoordTile coordinates
update_type: TileUpdateTypeUpdate type
data: Vec<u8>Tile data
format: StringTile format (e.g., “png”, “webp”, “mvt”)
delta: Option<Vec<u8>>Optional delta data
timestamp: i64Timestamp
Implementations§
Source§impl TileUpdate
impl TileUpdate
Sourcepub fn full(coord: TileCoord, data: Vec<u8>, format: String) -> Self
pub fn full(coord: TileCoord, data: Vec<u8>, format: String) -> Self
Create a new full tile update
Sourcepub fn delta(
coord: TileCoord,
data: Vec<u8>,
delta: Vec<u8>,
format: String,
) -> Self
pub fn delta( coord: TileCoord, data: Vec<u8>, delta: Vec<u8>, format: String, ) -> Self
Create a new delta tile update
Sourcepub fn invalidate(coord: TileCoord) -> Self
pub fn invalidate(coord: TileCoord) -> Self
Create an invalidation update
Sourcepub fn to_message(&self) -> Message
pub fn to_message(&self) -> Message
Convert to message
Auto Trait Implementations§
impl Freeze for TileUpdate
impl RefUnwindSafe for TileUpdate
impl Send for TileUpdate
impl Sync for TileUpdate
impl Unpin for TileUpdate
impl UnsafeUnpin for TileUpdate
impl UnwindSafe for TileUpdate
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