#[non_exhaustive]pub struct Announce {
pub prefix: Path,
pub route: RouteInfo,
}Expand description
A route over a prefix, as an announcement listing or a Routes stream reports it.
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; the application decides which paths name
broadcasts, and filters them locally when it wants a subset.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prefix: PathThe prefix the route covers, relative to the consuming cursor’s root.
route: RouteInfoThe route serving the prefix. On a retraction this carries its last advertised metadata.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Announce
impl RefUnwindSafe for Announce
impl Send for Announce
impl Sync for Announce
impl Unpin for Announce
impl UnsafeUnpin for Announce
impl UnwindSafe for Announce
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more