pub trait NetworkProvider {
// Required methods
fn descriptor(&self) -> ProviderDescriptor;
fn acquire(&self, bounds: GeoBounds) -> Result<ProviderPayload>;
fn normalize(&self, shards: &[RawShard<'_>]) -> Result<NormalizedNetwork>;
// Provided method
fn covers(&self, _bounds: GeoBounds) -> bool { ... }
}Required Methods§
fn descriptor(&self) -> ProviderDescriptor
fn acquire(&self, bounds: GeoBounds) -> Result<ProviderPayload>
fn normalize(&self, shards: &[RawShard<'_>]) -> Result<NormalizedNetwork>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".