Add note about Gateway: store

This commit is contained in:
bitfl0wer 2023-08-04 16:54:56 +02:00
parent c8abec7686
commit 55a2335664
1 changed files with 2 additions and 0 deletions

View File

@ -297,6 +297,8 @@ impl GatewayHandle {
} }
} }
/// The value of `store`s [`HashMap`] is a [`tokio::sync::watch::channel<T: Updateable>`]. See the
/// [`Updateable`] trait for more information.
pub struct Gateway { pub struct Gateway {
events: Arc<Mutex<Events>>, events: Arc<Mutex<Events>>,
heartbeat_handler: HeartbeatHandler, heartbeat_handler: HeartbeatHandler,