Skip to main content

VersionComparator

Type Alias VersionComparator 

Source
pub type VersionComparator = Arc<dyn Fn(Version, RemoteRelease) -> bool + Send + Sync + 'static>;
Expand description

Custom version comparator used to override the default semver > update check.

The closure receives the current application version and the fetched remote release model. Return true to treat the release as an update.

Aliased Typeยง

pub struct VersionComparator { /* private fields */ }