[][src]Trait twilight_gateway::queue::Queue

pub trait Queue: Debug + Send + Sync {
#[must_use]    fn request<'life0, 'async_trait>(
        &'life0 self,
        shard_id: [u64; 2]
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn request<'life0, 'async_trait>(
    &'life0 self,
    shard_id: [u64; 2]
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl Queue for LargeBotQueue[src]

fn request<'life0, 'async_trait>(
    &'life0 self,
    shard_id: [u64; 2]
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Request to be able to identify with the gateway. This will place this request behind all other requests, and the returned future will resolve once the request has been completed.

impl Queue for LocalQueue[src]

fn request<'life0, 'async_trait>(
    &'life0 self,
    __arg1: [u64; 2]
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Request to be able to identify with the gateway. This will place this request behind all other requests, and the returned future will resolve once the request has been completed.

Loading content...