Trait Factory

Source
pub trait Factory {
    // Required method
    fn _repositories_count<'life0, 'async_trait>(
        client: &'life0 Client,
        url: Url,
    ) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>>
       where 'life0: 'async_trait;

    // Provided methods
    fn _pages_count(repo_count: usize) -> usize { ... }
    fn _build_repo_links(
        page_url: Url,
        repo_count: usize,
        pages_count: usize,
    ) -> Vec<Url> { ... }
}

Required Methods§

Source

fn _repositories_count<'life0, 'async_trait>( client: &'life0 Client, url: Url, ) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>>
where 'life0: 'async_trait,

Provided Methods§

Source

fn _pages_count(repo_count: usize) -> usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§