Structs§
- Hanging
Get - Deprecated: New code should use [
async_utils::hanging_get::server::HangingGet
]. - Hanging
GetBroker - A
Send
wrapper for aHangingGet
that can receive messages via an async channel. TheHangingGetBroker
is the primary way of implementing server side hanging get using this library. It manages all state and reacts to inputs sent over channels. - Publisher
- A
Publisher
is used to make changes to the state contained within aHangingGetBroker
. It is designed to be cheaply cloned andSend
. - Subscriber
- A
Subscriber
can be used to register observation requests with theHangingGetBroker
. These observations will be fulfilled when the state changes or immediately the first time aSubscriber
registers an observation. - Subscription
Registrar - A cheaply copyable handle that can be used to register new
Subscriber
s with theHangingGetBroker
.
Constants§
- DEFAULT_
CHANNEL_ SIZE - Default value that can be passed to
HangingGetBroker::new
by clients. If passed in, this will be used for all MPSC channels created by the broker.