Skip to main content

LiveScoreProvider

Trait LiveScoreProvider 

Source
pub trait LiveScoreProvider: Send + Sync {
    // Required methods
    fn scoreboard(
        &self,
        date: Date,
    ) -> impl Future<Output = ProviderResponse<LiveScoreboard>> + Send;
    fn box_score(
        &self,
        game: &LiveGame,
        play_by_play: bool,
    ) -> impl Future<Output = ProviderResponse<LiveGameSnapshot>> + Send;
}

Required Methods§

Source

fn scoreboard( &self, date: Date, ) -> impl Future<Output = ProviderResponse<LiveScoreboard>> + Send

Source

fn box_score( &self, game: &LiveGame, play_by_play: bool, ) -> impl Future<Output = ProviderResponse<LiveGameSnapshot>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl LiveScoreProvider for Tank01Client

Source§

async fn scoreboard(&self, date: Date) -> ProviderResponse<LiveScoreboard>

Source§

async fn box_score( &self, game: &LiveGame, play_by_play: bool, ) -> ProviderResponse<LiveGameSnapshot>

Implementors§