pub struct Update {
pub prefix: PathOwned,
pub captures: Option<Vec<Pattern>>,
pub route: Route,
pub kind: AnnounceKind,
}Expand description
A route announcement, update, or retraction, delivered by AnnounceConsumer.
An announcement is always a prefix, never a broadcast: it advertises that
prefix and every path beneath it are servable. A broadcast
announces its own path, so the prefix usually names one, but resolve it with
Consumer::request_broadcast; the application decides which paths name
broadcasts, and filters with a Pattern locally when it wants a subset.
Fields§
§prefix: PathOwnedThe prefix the route covers, relative to the consuming cursor’s root.
captures: Option<Vec<Pattern>>What the scope’s wildcards stood for when the announced prefix pins all of
them. None for an overlap-only route or a scope without a complete match.
route: RouteThe route serving the prefix. On a retraction this carries its last advertised metadata.
kind: AnnounceKindWhether the prefix was announced, re-priced, or retracted.