Trait tetsy_updater::Service[][src]

pub trait Service: Send + Sync {
    fn capability(&self) -> CapState;
fn upgrade_ready(&self) -> Option<ReleaseInfo>;
fn execute_upgrade(&self) -> bool;
fn version_info(&self) -> VersionInfo;
fn info(&self) -> Option<OperationsInfo>; }

Parity updater service trait

Required methods

fn capability(&self) -> CapState[src]

Is the currently running client capable of supporting the current chain? We default to true if there’s no clear information.

fn upgrade_ready(&self) -> Option<ReleaseInfo>[src]

The release which is ready to be upgraded to, if any. If this returns Some, then execute_upgrade may be called.

fn execute_upgrade(&self) -> bool[src]

Actually upgrades the client. Assumes that the binary has been downloaded. @returns true on success.

fn version_info(&self) -> VersionInfo[src]

Our version info.

fn info(&self) -> Option<OperationsInfo>[src]

Information gathered concerning the release.

Loading content...

Implementors

impl<O: OperationsClient, F: HashFetch, T: TimeProvider, R: GenRange> Service for Updater<O, F, T, R>[src]

Loading content...