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§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".