Trait queue_times::client::QueueTimesClient[][src]

pub trait QueueTimesClient {
    fn get_park_urls<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Url>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_ride_times<'life0, 'async_trait>(
        &'life0 self,
        park_url: Url
    ) -> Pin<Box<dyn Future<Output = Result<Vec<RideTime>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Defines the public interface of a queue times client.

Required methods

Retrieves a map of park names to the url of their rides page.

Urls are absolute to the resource.

Names are properly capitalised, eg. ‘Cedar Point’ or ‘Parc Astérix’.

Errors

This function will error if the website HTML is too malformed to parse, or if the queue times website is offline.

Retrieves the queue times for all parsable rides on a park rides page.

Arguments

Errors

This function will error if the website HTML is too malformed to parse, or if the queue times website is offline.

Implementors