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§
fn tile_data_future( &self, x: i32, y: i32, zoom_level: i32, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + 'static>>
Provided Methods§
Sourcefn start_request(
&self,
x: i32,
y: i32,
zoom_level: i32,
cancellable: Option<Cancellable>,
) -> Option<DataSourceRequest>
fn start_request( &self, x: i32, y: i32, zoom_level: i32, cancellable: Option<Cancellable>, ) -> Option<DataSourceRequest>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".