i3status_rs::blocks::packages

Trait Backend

source
pub trait Backend {
    // Required methods
    fn name(&self) -> Cow<'static, str>;
    fn get_updates_list<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn name(&self) -> Cow<'static, str>

source

fn get_updates_list<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§