Skip to main content

ReleaseProvider

Trait ReleaseProvider 

Source
pub trait ReleaseProvider {
    // Required methods
    fn latest_stable(&self) -> Result<LatestRelease, UpdateError>;
    fn releases_url(&self) -> &'static str;
}
Expand description

Source of release information for the self-updater. Implement this and swap the constructor in [super::provider] to change backends without touching any caller.

Required Methods§

Source

fn latest_stable(&self) -> Result<LatestRelease, UpdateError>

The newest stable release for this app, with its downloadable assets. Blocking — callers run it on the blocking pool.

Source

fn releases_url(&self) -> &'static str

Human-facing page listing releases, shown when self-update isn’t available on the current install channel.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§