Add note about GatewayHandle: `store`

This commit is contained in:
bitfl0wer 2023-08-04 16:54:03 +02:00
parent 1154cc98a1
commit 9fe55559c7
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
1 changed files with 4 additions and 0 deletions

View File

@ -152,6 +152,10 @@ impl GatewayMessage {
/// [`GatewayEvents`](GatewayEvent), which you can subscribe to. Gateway events include all currently /// [`GatewayEvents`](GatewayEvent), which you can subscribe to. Gateway events include all currently
/// implemented types with the trait [`WebSocketEvent`] /// implemented types with the trait [`WebSocketEvent`]
/// Using this handle you can also send Gateway Events directly. /// Using this handle you can also send Gateway Events directly.
///
/// # Store
/// The value of `store`s [`HashMap`] is a [`tokio::sync::watch::channel<T: Updateable>`]. See the
/// [`Updateable`] trait for more information.
#[derive(Debug)] #[derive(Debug)]
pub struct GatewayHandle { pub struct GatewayHandle {
pub url: String, pub url: String,