community_theatre v0.1.1 API Reference

Modules

Community theatre is similar but opposite to the broadway package. It's designed to handle ingesting data from sources at various update frequencies and emit them again to consumers at a constrained rate. Particularly useful for devices of constrained resources.

This module coordinates client subscriptions and their rate limiters to ensure that clients only receive updates at the rate they specified.

A struct containing an inbound message and it's metadata.

The RateLimiter behaviour allows you to define for yourself how you would like messages to be handled in the event that they arrive faster than required.

Sample averaging rate limiter

Sample dropping ratae limiter