SiteKit

Trait SiteKit 

Source
pub trait SiteKit {
    // Required methods
    fn create<'life0, 'async_trait>(
        &'life0 mut self,
        site: Box<dyn Site>,
    ) -> Pin<Box<dyn Future<Output = Box<dyn SiteId>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_site(&self, url: Url) -> (&Box<dyn Site>, Box<dyn SiteId>);
    fn reader(&self) -> Box<dyn Reader + '_>;
    fn site_id_builder(&self) -> Box<dyn SiteIdBuilder>;
    fn site_builder(&self) -> Box<dyn SiteBuilder>;
}

Required Methods§

Source

fn create<'life0, 'async_trait>( &'life0 mut self, site: Box<dyn Site>, ) -> Pin<Box<dyn Future<Output = Box<dyn SiteId>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_site(&self, url: Url) -> (&Box<dyn Site>, Box<dyn SiteId>)

Source

fn reader(&self) -> Box<dyn Reader + '_>

Source

fn site_id_builder(&self) -> Box<dyn SiteIdBuilder>

Source

fn site_builder(&self) -> Box<dyn SiteBuilder>

Implementors§