pub trait DDstats {
// Required methods
fn player(
&self,
player: &str,
) -> impl Future<Output = Result<Player>> + Send;
fn map(&self, map: &str) -> impl Future<Output = Result<Map>> + Send;
fn maps(&self) -> impl Future<Output = Result<Vec<StatsMap>>> + Send;
fn profile(
&self,
player: &str,
) -> impl Future<Output = Result<Profile>> + Send;
fn teero(&self, player: &str) -> impl Future<Output = Result<Teero>> + Send;
}Required Methods§
fn player(&self, player: &str) -> impl Future<Output = Result<Player>> + Send
fn map(&self, map: &str) -> impl Future<Output = Result<Map>> + Send
fn maps(&self) -> impl Future<Output = Result<Vec<StatsMap>>> + Send
fn profile(&self, player: &str) -> impl Future<Output = Result<Profile>> + Send
fn teero(&self, player: &str) -> impl Future<Output = Result<Teero>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".