pub trait ClientTrait {
// Required methods
fn allowlist_get(&self) -> impl Future<Output = Result<Vec<Player>>> + Send;
fn allowlist_set(
&self,
players: &[Player],
) -> impl Future<Output = Result<Vec<Player>>> + Send;
fn allowlist_add(
&self,
players: &[Player],
) -> impl Future<Output = Result<Vec<Player>>> + Send;
fn allowlist_remove(
&self,
players: &[Player],
) -> impl Future<Output = Result<Vec<Player>>> + Send;
fn allowlist_clear(
&self,
) -> impl Future<Output = Result<Vec<Player>>> + Send;
fn bans_get(&self) -> impl Future<Output = Result<Vec<UserBan>>> + Send;
fn bans_set(
&self,
bans: &[UserBan],
) -> impl Future<Output = Result<Vec<UserBan>>> + Send;
fn bans_add(
&self,
bans: &[UserBan],
) -> impl Future<Output = Result<Vec<UserBan>>> + Send;
fn bans_remove(
&self,
players: &[Player],
) -> impl Future<Output = Result<Vec<UserBan>>> + Send;
fn bans_clear(&self) -> impl Future<Output = Result<Vec<UserBan>>> + Send;
}Required Methods§
fn allowlist_get(&self) -> impl Future<Output = Result<Vec<Player>>> + Send
fn allowlist_set( &self, players: &[Player], ) -> impl Future<Output = Result<Vec<Player>>> + Send
fn allowlist_add( &self, players: &[Player], ) -> impl Future<Output = Result<Vec<Player>>> + Send
fn allowlist_remove( &self, players: &[Player], ) -> impl Future<Output = Result<Vec<Player>>> + Send
fn allowlist_clear(&self) -> impl Future<Output = Result<Vec<Player>>> + Send
fn bans_get(&self) -> impl Future<Output = Result<Vec<UserBan>>> + Send
fn bans_set( &self, bans: &[UserBan], ) -> impl Future<Output = Result<Vec<UserBan>>> + Send
fn bans_add( &self, bans: &[UserBan], ) -> impl Future<Output = Result<Vec<UserBan>>> + Send
fn bans_remove( &self, players: &[Player], ) -> impl Future<Output = Result<Vec<UserBan>>> + Send
fn bans_clear(&self) -> impl Future<Output = Result<Vec<UserBan>>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".