pub enum RoutingQuery {
Lookup(NodeId),
AllDestinations,
ViaNextHop(SocketAddr),
}Expand description
Query shapes the RoutingFold answers.
Variants§
Lookup(NodeId)
Best route to a single destination. Returns at most one row.
AllDestinations
Every destination known to be reachable via this fold.
ViaNextHop(SocketAddr)
Every destination reachable through a specific next-hop address. Used by the reroute path when a next-hop fails: callers need the list of destinations that route through the failed hop so they can solicit alternates.
Trait Implementations§
Source§impl Clone for RoutingQuery
impl Clone for RoutingQuery
Source§fn clone(&self) -> RoutingQuery
fn clone(&self) -> RoutingQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoutingQuery
impl Debug for RoutingQuery
impl Eq for RoutingQuery
Source§impl PartialEq for RoutingQuery
impl PartialEq for RoutingQuery
Source§fn eq(&self, other: &RoutingQuery) -> bool
fn eq(&self, other: &RoutingQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RoutingQuery
Auto Trait Implementations§
impl Freeze for RoutingQuery
impl RefUnwindSafe for RoutingQuery
impl Send for RoutingQuery
impl Sync for RoutingQuery
impl Unpin for RoutingQuery
impl UnsafeUnpin for RoutingQuery
impl UnwindSafe for RoutingQuery
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
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
Compare self to
key and return true if they are equal.