Skip to main content

DDstats

Trait DDstats 

Source
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§

Source

fn player(&self, player: &str) -> impl Future<Output = Result<Player>> + Send

Source

fn map(&self, map: &str) -> impl Future<Output = Result<Map>> + Send

Source

fn maps(&self) -> impl Future<Output = Result<Vec<StatsMap>>> + Send

Source

fn profile(&self, player: &str) -> impl Future<Output = Result<Profile>> + Send

Source

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

Implementors§