Trait twilight_gateway_queue::Queue
source · [−]pub trait Queue: Debug + Send + Sync {
fn request<'a>(
&'a self,
shard_id: [u64; 2]
) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>>;
}
Expand description
Queue for shards to request the ability to initialize new sessions with the gateway.
This will usually only need to be implemented when you have a multi-process cluster setup. Refer to the module-level documentation for more information.