Skip to main content

Module origin

Module origin 

Source
Expand description

Routing broadcasts into an origin, and consuming them through it.

Structs§

Claim
A prefix route on an origin: a claim that every path beneath a prefix can be served, answering each request as it arrives.
Config
An origin’s identity plus the cache pool its broadcasts inherit.
Consumer
Cheap read handle over an origin’s route table.
Cost
The static cost of pulling content through a route; lower wins.
Driver
Drives origin lifecycle work and cache expiration with caller-supplied time.
Following
Each identity serving one path, handed out as it takes over. Created by Consumer::follow.
Priority
How much an endpoint prefers a link over its others; higher wins.
Producer
Publishes broadcasts and announces routes into an origin.
Request
A pending request for a broadcast to be served on demand.
Requesting
An owned broadcast resolution, driven by polling or awaiting it.
Route
An exact route on an origin: one path, owning the broadcast published there.
RouteEvent
What a Routes yields: how the route covering a prefix changed, and that route.
RouteInfo
The stream a received route serves and what using it costs: read-only facts on an announcement.
RouteOptions
How an application advertises a Route: its visibility at creation, its price, its credential, and, rarely, a stable identity.
Routes
Receives every route change for a scope, for relays and stats.

Enums§

Link
The link a handle’s routes arrive on; see Producer::with_link.
RouteKind
How the route covering a prefix changed.