pub trait ServerExt {
// Required methods
fn fetch_member<'life0, 'life1, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
user_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Member>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn fetch_bans<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
) -> Pin<Box<dyn Future<Output = Result<BanListResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn unban_member<'life0, 'life1, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
user_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn create_channel<'life0, 'life1, 'async_trait>(
&'life0 mut self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
data: &'life1 DataCreateServerChannel,
) -> Pin<Box<dyn Future<Output = Result<Channel>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn fetch_emojis<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Emoji>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn fetch_invites<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Invite>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_default_permissions<'life0, 'async_trait>(
&'life0 mut self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
permissions: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_role<'life0, 'async_trait>(
&'life0 mut self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
name: String,
) -> Pin<Box<dyn Future<Output = Result<Role>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn reorder_roles<'life0, 'async_trait>(
&'life0 mut self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
order: Vec<Role>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn fetch_role<'life0, 'life1, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
role_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Role>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn edit_server<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
) -> Pin<Box<dyn Future<Output = EditServerBuilder> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn fetch_member<'life0, 'life1, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
user_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Member>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_bans<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
) -> Pin<Box<dyn Future<Output = Result<BanListResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn unban_member<'life0, 'life1, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
user_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_channel<'life0, 'life1, 'async_trait>(
&'life0 mut self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
data: &'life1 DataCreateServerChannel,
) -> Pin<Box<dyn Future<Output = Result<Channel>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_emojis<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Emoji>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_invites<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Invite>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_default_permissions<'life0, 'async_trait>(
&'life0 mut self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
permissions: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_role<'life0, 'async_trait>(
&'life0 mut self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
name: String,
) -> Pin<Box<dyn Future<Output = Result<Role>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn reorder_roles<'life0, 'async_trait>(
&'life0 mut self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
order: Vec<Role>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_role<'life0, 'life1, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
role_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Role>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn edit_server<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
) -> Pin<Box<dyn Future<Output = EditServerBuilder> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".