diff options
| author | mat <git@matdoes.dev> | 2025-04-16 07:13:09 +0400 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-04-16 07:13:09 +0400 |
| commit | 66174fc7d4a1f2f2ee8449a2655c049895b63e7c (patch) | |
| tree | 644cab0a5e7f3d6d659b1beeaac0840948cec32e /azalea-client/src/plugins | |
| parent | a9820dfd79bf24a0a6fcb2345aad6c79a21585a5 (diff) | |
| download | azalea-drasl-66174fc7d4a1f2f2ee8449a2655c049895b63e7c.tar.xz | |
clippy and fix broken doc tests
Diffstat (limited to 'azalea-client/src/plugins')
| -rw-r--r-- | azalea-client/src/plugins/tick_broadcast.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/azalea-client/src/plugins/tick_broadcast.rs b/azalea-client/src/plugins/tick_broadcast.rs index 161413d8..424e1bf3 100644 --- a/azalea-client/src/plugins/tick_broadcast.rs +++ b/azalea-client/src/plugins/tick_broadcast.rs @@ -10,7 +10,7 @@ use tokio::sync::broadcast; /// This is useful for running code every schedule from async user code. /// /// ``` -/// use azalea_client::TickBroadcast; +/// use azalea_client::tick_broadcast::TickBroadcast; /// # async fn example(client: azalea_client::Client) { /// let mut receiver = { /// let ecs = client.ecs.lock(); @@ -24,6 +24,10 @@ use tokio::sync::broadcast; /// ``` #[derive(Resource, Deref)] pub struct TickBroadcast(broadcast::Sender<()>); +/// A resource that contains a [`broadcast::Sender`] that will be sent every +/// Azalea ECS Update. +/// +/// Also see [`TickBroadcast`]. #[derive(Resource, Deref)] pub struct UpdateBroadcast(broadcast::Sender<()>); |
