pub trait MemberExt {
// Required methods
fn ban<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
reason: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<ServerBan>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn edit<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
) -> Pin<Box<dyn Future<Output = EditMemberBuilder> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn kick<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn add_roles<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
roles: Vec<Role>,
) -> Pin<Box<dyn Future<Output = Result<Member>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn voice(
&self,
cache: impl AsRef<GlobalCache>,
) -> Option<(String, UserVoiceState)>;
fn mention(&self) -> String;
}Required Methods§
fn ban<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
reason: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<ServerBan>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn edit<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
) -> Pin<Box<dyn Future<Output = EditMemberBuilder> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn kick<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_roles<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
roles: Vec<Role>,
) -> Pin<Box<dyn Future<Output = Result<Member>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn voice( &self, cache: impl AsRef<GlobalCache>, ) -> Option<(String, UserVoiceState)>
fn mention(&self) -> String
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.