@@ -44,6 +44,7 @@ mod on_update;
44
44
/// # Type Parameters
45
45
/// * `K` - The type of the keys of the downlink.
46
46
/// * `V` - The type of the values of the downlink.
47
+ /// * `M` - The map type underlying the downlink (i.e. [`std::collections::HashMap<K, V>`]).
47
48
/// * `Context` - The context within which the event handlers execute (providing access to the agent lanes).
48
49
pub trait MapDownlinkLifecycle < K , V , M , Context > :
49
50
OnLinked < Context >
@@ -73,6 +74,7 @@ impl<LC, K, V, M, Context> MapDownlinkLifecycle<K, V, M, Context> for LC where
73
74
/// * `Context` - The context within which the event handlers execute (providing access to the agent lanes).
74
75
/// * `K` - The type of the keys for the map.
75
76
/// * `V` - The type of the values for the map.
77
+ /// * `M` - The map type underlying the downlink (i.e. [`std::collections::HashMap<K, V>`]).
76
78
pub trait StatelessMapLifecycle < Context , K , V , M > : MapDownlinkLifecycle < K , V , M , Context > {
77
79
type WithOnLinked < H > : StatelessMapLifecycle < Context , K , V , M >
78
80
where
@@ -146,6 +148,7 @@ pub trait StatelessMapLifecycle<Context, K, V, M>: MapDownlinkLifecycle<K, V, M,
146
148
/// * `Shared` - The type of the shared state.
147
149
/// * `K` - The type of the keys for the map.
148
150
/// * `V` - The type of the values for the map.
151
+ /// * `M` - The map type underlying the downlink (i.e. [`std::collections::HashMap<K, V>`]).
149
152
pub trait StatefulMapLifecycle < Context , Shared , K , V , M > :
150
153
MapDownlinkLifecycle < K , V , M , Context >
151
154
{
@@ -214,6 +217,7 @@ pub trait StatefulMapLifecycle<Context, Shared, K, V, M>:
214
217
/// * `Context` - The context within which the event handlers execute (providing access to the agent lanes).
215
218
/// * `K` - The type of the keys of the downlink.
216
219
/// * `V` - The type of the values of the downlink.
220
+ /// * `M` - The map type underlying the downlink (i.e. [`std::collections::HashMap<K, V>`]).
217
221
/// * `FLinked` - The type of the 'on_linked' handler.
218
222
/// * `FSynced` - The type of the 'on_synced' handler.
219
223
/// * `FUnlinked` - The type of the 'on_unlinked' handler.
@@ -267,6 +271,7 @@ impl<Context, K, V, M> Default for StatelessMapDownlinkLifecycle<Context, K, V,
267
271
/// * `State` - The type of the shared state.
268
272
/// * `K` - The type of the keys of the downlink.
269
273
/// * `V` - The type of the values of the downlink.
274
+ /// * `M` - The map type underlying the downlink (i.e. [`std::collections::HashMap<K, V>`]).
270
275
/// * `FLinked` - The type of the 'on_linked' handler.
271
276
/// * `FSynced` - The type of the 'on_synced' handler.
272
277
/// * `FUnlinked` - The type of the 'on_unlinked' handler.
0 commit comments