@@ -10,6 +10,7 @@ use super::{PubSubBehavior, PubSubChannel};
10
10
use crate :: blocking_mutex:: raw:: RawMutex ;
11
11
12
12
/// A publisher to a channel
13
+ #[ derive( Debug ) ]
13
14
pub struct Pub < ' a , PSB : PubSubBehavior < T > + ?Sized , T : Clone > {
14
15
/// The channel we are a publisher for
15
16
channel : & ' a PSB ,
@@ -106,6 +107,7 @@ impl<'a, T: Clone> DerefMut for DynPublisher<'a, T> {
106
107
}
107
108
108
109
/// A publisher that holds a generic reference to the channel
110
+ #[ derive( Debug ) ]
109
111
pub struct Publisher < ' a , M : RawMutex , T : Clone , const CAP : usize , const SUBS : usize , const PUBS : usize > (
110
112
pub ( super ) Pub < ' a , PubSubChannel < M , T , CAP , SUBS , PUBS > , T > ,
111
113
) ;
@@ -130,6 +132,7 @@ impl<'a, M: RawMutex, T: Clone, const CAP: usize, const SUBS: usize, const PUBS:
130
132
131
133
/// A publisher that can only use the `publish_immediate` function, but it doesn't have to be registered with the channel.
132
134
/// (So an infinite amount is possible)
135
+ #[ derive( Debug ) ]
133
136
pub struct ImmediatePub < ' a , PSB : PubSubBehavior < T > + ?Sized , T : Clone > {
134
137
/// The channel we are a publisher for
135
138
channel : & ' a PSB ,
@@ -205,6 +208,7 @@ impl<'a, T: Clone> DerefMut for DynImmediatePublisher<'a, T> {
205
208
}
206
209
207
210
/// An immediate publisher that holds a generic reference to the channel
211
+ #[ derive( Debug ) ]
208
212
pub struct ImmediatePublisher < ' a , M : RawMutex , T : Clone , const CAP : usize , const SUBS : usize , const PUBS : usize > (
209
213
pub ( super ) ImmediatePub < ' a , PubSubChannel < M , T , CAP , SUBS , PUBS > , T > ,
210
214
) ;
@@ -229,6 +233,7 @@ impl<'a, M: RawMutex, T: Clone, const CAP: usize, const SUBS: usize, const PUBS:
229
233
230
234
#[ must_use = "Sinks do nothing unless polled" ]
231
235
/// [`futures_sink::Sink`] adapter for [`Pub`].
236
+ #[ derive( Debug ) ]
232
237
pub struct PubSink < ' a , ' p , PSB , T >
233
238
where
234
239
T : Clone ,
@@ -290,6 +295,7 @@ where
290
295
291
296
/// Future for the publisher wait action
292
297
#[ must_use = "futures do nothing unless you `.await` or poll them" ]
298
+ #[ derive( Debug ) ]
293
299
pub struct PublisherWaitFuture < ' s , ' a , PSB : PubSubBehavior < T > + ?Sized , T : Clone > {
294
300
/// The message we need to publish
295
301
message : Option < T > ,
0 commit comments