pub struct WatchOptions {
pub lifetime: Lifetime,
pub renewal_margin: Duration,
pub poll_every: Duration,
pub poll_floor: Duration,
pub poll_backoff: Backoff,
pub retry_cov: Backoff,
pub missing: MissingDevice,
pub reads: Reads,
pub coalesce: Duration,
pub samples: usize,
pub max_points: usize,
pub bucket: Option<Arc<TokenBucket>>,
}Expand description
The hub’s settings.
Fields§
§lifetime: LifetimeEach subscription’s lifetime.
renewal_margin: DurationHow long before a lifetime ends the renewal goes. It covers a wait
for the device’s gate and the renewal’s own request with retries
(see renewal_margin).
poll_every: DurationLeast time between two polls of a device, all its polled points
read together; at least poll_floor.
poll_floor: DurationThe shortest poll_every taken; at least
POLL_FLOOR.
poll_backoff: BackoffHow long a device that stopped answering polls waits for the next.
retry_cov: BackoffAfter a subscription failed for want of an answer (rather than a
refusal), or a renewal failed, how long the point is polled before
it is read and subscribed again; never sooner than
poll_floor.
missing: MissingDeviceWhat a point does whose device isn’t in the discovery table.
reads: ReadsWhat a point reads.
coalesce: DurationChanges to one point within this window make one signal; zero for a signal per change.
samples: usizeSamples a lease’s stream (Lease::samples)
holds at least before the oldest go (the channel rounds it up to a
power of two).
max_points: usizePoints watched at once, those still cancelling included.
bucket: Option<Arc<TokenBucket>>The hub’s own rate, taken by each request it sends but cancels;
None for none beyond the engine’s limits.