Skip to main content

ClientTrait

Trait ClientTrait 

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

Source

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

Source

fn allowlist_set( &self, players: &[Player], ) -> impl Future<Output = Result<Vec<Player>>> + Send

Source

fn allowlist_add( &self, players: &[Player], ) -> impl Future<Output = Result<Vec<Player>>> + Send

Source

fn allowlist_remove( &self, players: &[Player], ) -> impl Future<Output = Result<Vec<Player>>> + Send

Source

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

Source

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

Source

fn bans_set( &self, bans: &[UserBan], ) -> impl Future<Output = Result<Vec<UserBan>>> + Send

Source

fn bans_add( &self, bans: &[UserBan], ) -> impl Future<Output = Result<Vec<UserBan>>> + Send

Source

fn bans_remove( &self, players: &[Player], ) -> impl Future<Output = Result<Vec<UserBan>>> + Send

Source

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

Implementors§