Module watch

Source
Expand description

A synchronization primitive for passing the latest value to multiple receivers.

Structs§

AnonRcv
A anonymous receiver can NOT .await a change in the Watch value.
AnonReceiver
A receiver of a Watch channel that cannot .await values.
DynAnonReceiver
A receiver that cannot .await value, which holds a dynamic reference to a Watch 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 the Watch value.
Receiver
A receiver of a Watch channel.
Sender
A sender of a Watch channel.
Snd
A receiver can .await a change in the Watch value.
Watch
The Watch is a single-slot signaling primitive that allows multiple receivers to concurrently await changes to the value. Unlike a Signal, Watch supports multiple receivers, and unlike a PubSubChannel, Watch immediately overwrites the previous value when a new one is sent, without waiting for all receivers to read the previous value.

Traits§

WatchBehavior
A trait representing the ‘inner’ behavior of the Watch.