Updater

Trait Updater 

Source
pub trait Updater: Debug {
    // Required methods
    fn url(&self, resource: &str) -> Option<String>;
    fn get_versions<'life0, 'life1, 'async_trait>(
        &'life0 self,
        url: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Version>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn updated_line(&self, entity: &Entity) -> Option<String>;
}

Required Methods§

Source

fn url(&self, resource: &str) -> Option<String>

Source

fn get_versions<'life0, 'life1, 'async_trait>( &'life0 self, url: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<Version>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn updated_line(&self, entity: &Entity) -> Option<String>

Implementors§