Trait DDnetApi

Source
pub trait DDnetApi {
    // Required methods
    fn master(&self) -> impl Future<Output = Result<Master>> + Send;
    fn skins(&self) -> impl Future<Output = Result<DDSkins>> + Send;
    fn custom_master(
        &self,
        master: MasterServer,
    ) -> impl Future<Output = Result<Master>> + Send;
    fn player(
        &self,
        player: &str,
    ) -> impl Future<Output = Result<Player>> + Send;
    fn query(
        &self,
        player: &str,
    ) -> impl Future<Output = Result<Vec<Query>>> + Send;
    fn query_map(
        &self,
        player: &str,
    ) -> impl Future<Output = Result<Vec<QueryMap>>> + Send;
    fn query_mapper(
        &self,
        player: &str,
    ) -> impl Future<Output = Result<Vec<QueryMapper>>> + Send;
    fn map(&self, map: &str) -> impl Future<Output = Result<Map>> + Send;
    fn releases_map(
        &self,
    ) -> impl Future<Output = Result<Vec<ReleasesMaps>>> + Send;
    fn status(&self) -> impl Future<Output = Result<Status>> + Send;
}

Required Methods§

Source

fn master(&self) -> impl Future<Output = Result<Master>> + Send

Source

fn skins(&self) -> impl Future<Output = Result<DDSkins>> + Send

Source

fn custom_master( &self, master: MasterServer, ) -> impl Future<Output = Result<Master>> + Send

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn status(&self) -> impl Future<Output = Result<Status>> + 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.

Implementors§