[][src]Module lifeline::subscription

A subscription utility channel, which can maintain a subscription state, and generate unique identifiers for each new subscription.

Structs

Receiver

A receiver which provides SubscriptionState messages. Returns immediately on the first recv(), and then waits for subscription updates. Also provides .contains(id) and .get_identifier(id) utility methods, which are non-blocking.

Sender

A sender which takes Subscription::Subscribe(id) and Subscription::Unsubscribe(id) messages

SubscriptionState

Represents the current subscription state of the channel.

Enums

Subscription

Subscribes, or unsubscribes to the given identifier