Skip to main content

DataSourceImpl

Trait DataSourceImpl 

Source
pub trait DataSourceImpl: ObjectImpl {
    // Required method
    fn tile_data_future(
        &self,
        x: i32,
        y: i32,
        zoom_level: i32,
    ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + 'static>>;

    // Provided method
    fn start_request(
        &self,
        x: i32,
        y: i32,
        zoom_level: i32,
        cancellable: Option<Cancellable>,
    ) -> Option<DataSourceRequest> { ... }
}

Required Methods§

Source

fn tile_data_future( &self, x: i32, y: i32, zoom_level: i32, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + 'static>>

Provided Methods§

Source

fn start_request( &self, x: i32, y: i32, zoom_level: i32, cancellable: Option<Cancellable>, ) -> Option<DataSourceRequest>

Begins a request for a tile.

§x

X coordinate to request

§y

Y coordinate to request

§zoom_level

zoom level to request

§cancellable

for cancelling the request

§Returns

a DataSourceRequest object for tracking the request.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§