Trait Queue
Source pub trait Queue {
// Required method
fn enqueue(&self, id: u32) -> Receiver<()>;
}
Expand description
Abstraction for types processing gateway identify requests.
Enqueue a shard with this ID.
Send ()
to signal the shard to proceed. Note that shards may have
dropped the receiver prior.
Closing the channel should causes the shard to requeue.