TableFetcher

Trait TableFetcher 

Source
pub trait TableFetcher {
    // Required methods
    fn fetch_table(
        &self,
        web_url: Url,
    ) -> impl Future<Output = Result<FetchedTable>> + Send + '_;
    fn fetch_table_list(
        &self,
        web_url: Url,
    ) -> impl Future<Output = Result<FetchedTableList>> + Send + '_;
}
Available on crate feature scraper only.
Expand description

Unified interface for fetching BMS tables.

Required Methods§

Source

fn fetch_table( &self, web_url: Url, ) -> impl Future<Output = Result<FetchedTable>> + Send + '_

Fetch and parse a complete BMS difficulty table, including raw JSON strings.

§Errors

Returns an error if fetching or parsing the table fails.

Source

fn fetch_table_list( &self, web_url: Url, ) -> impl Future<Output = Result<FetchedTableList>> + Send + '_

Fetch a list of BMS difficulty tables, including the raw JSON string.

§Errors

Returns an error if fetching or parsing the list fails.

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§

Source§

impl TableFetcher for Fetcher

Available on crate feature reqwest only.