#[non_exhaustive]pub struct RouteEvent {
pub kind: RouteKind,
pub announce: Announce,
}Expand description
What a Routes yields: how the route covering a prefix changed, and that route.
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.kind: RouteKindHow the route changed.
announce: AnnounceThe route; for RouteKind::End, its last advertised route.
Trait Implementations§
Source§impl Clone for RouteEvent
impl Clone for RouteEvent
Auto Trait Implementations§
impl Freeze for RouteEvent
impl RefUnwindSafe for RouteEvent
impl Send for RouteEvent
impl Sync for RouteEvent
impl Unpin for RouteEvent
impl UnsafeUnpin for RouteEvent
impl UnwindSafe for RouteEvent
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