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