[][src]Trait serenity::gateway::WebSocketGatewayClientExt

pub trait WebSocketGatewayClientExt {
#[must_use]    pub fn send_chunk_guild<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        guild_id: GuildId,
        shard_info: &'life1 [u64; 2],
        limit: Option<u16>,
        filter: ChunkGuildFilter,
        nonce: Option<&'life2 str>
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn send_heartbeat<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        shard_info: &'life1 [u64; 2],
        seq: Option<u64>
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn send_identify<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        shard_info: &'life1 [u64; 2],
        token: &'life2 str,
        intents: GatewayIntents
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn send_presence_update<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        shard_info: &'life1 [u64; 2],
        current_presence: &'life2 CurrentPresence
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn send_resume<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        shard_info: &'life1 [u64; 2],
        session_id: &'life2 str,
        seq: u64,
        token: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]pub fn send_chunk_guild<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    guild_id: GuildId,
    shard_info: &'life1 [u64; 2],
    limit: Option<u16>,
    filter: ChunkGuildFilter,
    nonce: Option<&'life2 str>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn send_heartbeat<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    shard_info: &'life1 [u64; 2],
    seq: Option<u64>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn send_identify<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    shard_info: &'life1 [u64; 2],
    token: &'life2 str,
    intents: GatewayIntents
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn send_presence_update<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    shard_info: &'life1 [u64; 2],
    current_presence: &'life2 CurrentPresence
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn send_resume<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    shard_info: &'life1 [u64; 2],
    session_id: &'life2 str,
    seq: u64,
    token: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl WebSocketGatewayClientExt for WsStream[src]

Loading content...