summaryrefslogtreecommitdiffhomepage
path: root/mullvad-update/src/client/version_provider.rs
blob: d79bbf15a49bf715063eb5c63c51b1cb2a3a859c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::PathBuf;

use crate::version::{VersionInfo, VersionParameters};

/// See [module-level](self) docs.
pub trait VersionInfoProvider {
    /// Return info about the stable version
    fn get_version_info(
        &self,
        params: &VersionParameters,
    ) -> impl std::future::Future<Output = anyhow::Result<VersionInfo>> + Send;

    fn set_metadata_dump_path(&mut self, path: PathBuf);
}