pub enum Source {
Local,
Peer(Hop),
}Expand description
Where a route entered an origin: here, or from a cluster peer.
Origin bookkeeping, not a chain fact: the hop chain cannot say it, since a
client and a peer relay each append one hop. The origin records it from the
handle that announced the route; see Producer::peer.
Variants§
Local
Announced on this origin: by an in-process producer or a client session.
Peer(Hop)
Learned from a cluster peer, named by the announcing session’s declared or assigned identity.
Trait Implementations§
impl Copy for Source
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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