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§
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
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.