#[non_exhaustive]pub enum RouteKind {
Start,
Update,
End,
Offline,
Restart,
}Expand description
How the route covering a prefix changed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Start
A route now covers the prefix; the cursor had none there.
Update
The route covering the prefix changed hops, cost, epoch or availability, with the same identity; it is delivered in place.
End
The origin withdrew the route, as far as this origin knows, and no other covers the prefix.
Offline
This origin let go of the route, and no other covers the prefix: the session it
arrived on closed, or the route layer lost every path to it. Its origin may still
serve it; only an End says it stopped.
Restart
Another Identity now serves the prefix: another stream, such as a publisher
that restarted, a redundant ingest switching, or a pool failing over.
Whatever was resolved under the prefix before is the old stream: drop it and request afresh to follow the new one. Subscriptions already open stay on the old one until dropped or its route goes.
Trait Implementations§
impl Copy for RouteKind
impl Eq for RouteKind
impl StructuralPartialEq for RouteKind
Auto Trait Implementations§
impl Freeze for RouteKind
impl RefUnwindSafe for RouteKind
impl Send for RouteKind
impl Sync for RouteKind
impl Unpin for RouteKind
impl UnsafeUnpin for RouteKind
impl UnwindSafe for RouteKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.