[][src]Struct twilight_gateway::queue::LargeBotQueue

pub struct LargeBotQueue { /* fields omitted */ }
[]

Large bot queue is for bots that are marked as very large by Discord.

Usage with other bots will end up getting a large amount of failed identifies.

Implementations

impl LargeBotQueue[src][]

pub async fn new<'_>(buckets: usize, http: &'_ Client) -> Self[src][]

Creates a new large bot queue

Trait Implementations

impl Debug for LargeBotQueue[src][+]

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.

Auto Trait Implementations

impl !RefUnwindSafe for LargeBotQueue

impl Send for LargeBotQueue

impl Sync for LargeBotQueue

impl Unpin for LargeBotQueue

impl !UnwindSafe for LargeBotQueue

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[+]