martin 1.11.0

Blazing fast and lightweight tile server with PostGIS, MBTiles, and PMTiles support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::MartinResult;
use crate::reload::ReloadAdvisory;

/// Where a reload driver applies advisories.
///
/// The production implementation is [`TileSourceManager`](crate::TileSourceManager);
/// tests use a recording spy.
pub trait Sink: Send + 'static {
    /// Applies a [`ReloadAdvisory`] to the live source set.
    fn apply_changes(
        &self,
        advisory: ReloadAdvisory,
    ) -> impl Future<Output = MartinResult<()>> + Send;
}