pub struct TileRequest { /* private fields */ }Expand description
Owned async tile delivery handle passed to SourcePlugin::fetch_tile.
May be sent to any thread and answered asynchronously via Self::deliver.
Dropping without answering releases the request cleanly (treated by the
renderer as missing/cancelled).
Implementations§
Source§impl TileRequest
impl TileRequest
Sourcepub fn deliver(self, response: TileResponse<'_>) -> Result<()>
pub fn deliver(self, response: TileResponse<'_>) -> Result<()>
Delivers response to the renderer and consumes this request.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TileRequest
impl !Sync for TileRequest
impl !UnwindSafe for TileRequest
impl Forget for TileRequest
impl Freeze for TileRequest
impl Move for TileRequest
impl Send for TileRequestwhere
BoxRaw<dyn TileRequestBackend>: Send,
impl Unpin for TileRequest
impl UnsafeUnpin for TileRequestwhere
*const dyn TileRequestBackend is !null: UnsafeUnpin,
PhantomData<dyn TileRequestBackend>: UnsafeUnpin,
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