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

Implementors§