Expand description
A synchronization primitive for passing the latest value to multiple receivers.
Structs§
- AnonRcv
- A anonymous receiver can NOT
.await
a change in theWatch
value. - Anon
Receiver - A receiver of a
Watch
channel that cannot.await
values. - DynAnon
Receiver - A receiver that cannot
.await
value, which holds a dynamic reference to aWatch
channel. - DynReceiver
- A receiver which holds a dynamic reference to a
Watch
channel. - DynSender
- A sender which holds a dynamic reference to a
Watch
channel. - Rcv
- A receiver can
.await
a change in theWatch
value. - Receiver
- A receiver of a
Watch
channel. - Sender
- A sender of a
Watch
channel. - Snd
- A receiver can
.await
a change in theWatch
value. - Watch
- The
Watch
is a single-slot signaling primitive that allows multiple receivers to concurrently await changes to the value. Unlike aSignal
,Watch
supports multiple receivers, and unlike aPubSubChannel
,Watch
immediately overwrites the previous value when a new one is sent, without waiting for all receivers to read the previous value.
Traits§
- Watch
Behavior - A trait representing the ‘inner’ behavior of the
Watch
.