Trait Chapter

Source
pub trait Chapter {
    // Required methods
    fn fetch(&mut self, c: &Client) -> impl Future<Output = Result<()>>;
    fn search_image_urls(
        &mut self,
        c: &Client,
    ) -> impl Future<Output = Result<()>>;
    fn download(&mut self, c: &Client) -> impl Future<Output = Result<()>>;
    fn page_count(&self) -> usize;
    fn info(&self) -> Vec<(&str, String)>;
    fn format_info(&self, info: &Vec<(&str, String)>) -> String;
}

Required Methods§

Source

fn fetch(&mut self, c: &Client) -> impl Future<Output = Result<()>>

Source

fn search_image_urls(&mut self, c: &Client) -> impl Future<Output = Result<()>>

Source

fn download(&mut self, c: &Client) -> impl Future<Output = Result<()>>

Source

fn page_count(&self) -> usize

Source

fn info(&self) -> Vec<(&str, String)>

Source

fn format_info(&self, info: &Vec<(&str, String)>) -> String

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§