pub trait DDstats {
// Required methods
fn s_player(
&self,
player: &str,
) -> impl Future<Output = Result<Player>> + Send;
fn s_map(&self, map: &str) -> impl Future<Output = Result<Map>> + Send;
fn s_maps(&self) -> impl Future<Output = Result<Vec<StatsMap>>> + Send;
fn s_profile(
&self,
player: &str,
) -> impl Future<Output = Result<Profile>> + Send;
}Required Methods§
fn s_player(&self, player: &str) -> impl Future<Output = Result<Player>> + Send
fn s_map(&self, map: &str) -> impl Future<Output = Result<Map>> + Send
fn s_maps(&self) -> impl Future<Output = Result<Vec<StatsMap>>> + Send
fn s_profile( &self, player: &str, ) -> impl Future<Output = Result<Profile>> + Send
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.