Skip to main content

HighestSeenStore

Trait HighestSeenStore 

Source
pub trait HighestSeenStore {
    // Required methods
    fn load(&self) -> Result<Option<Version>, String>;
    fn store(&self, version: &Version) -> Result<(), String>;
}
Expand description

Persists the highest verified release version.

Required Methods§

Source

fn load(&self) -> Result<Option<Version>, String>

Returns the stored version, or None when none is stored.

Source

fn store(&self, version: &Version) -> Result<(), String>

Replaces the stored version.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§