Struct caminos_lib::routing::RoutingNextCandidates
source · pub struct RoutingNextCandidates {
pub candidates: Vec<CandidateEgress>,
pub idempotent: bool,
}
Expand description
The candidates as provided by the routing together with related information.
This is, the return type of Routing::next
.
Fields§
§candidates: Vec<CandidateEgress>
The vector of candidates.
idempotent: bool
Whether sucessive calls to the routing algorithm will find the exact same set of candidates.
If a call returns a RoutingNextCandidates
with some value of idempotent
then successive calls should also have that same value of idempotent
.
Returning idempotent
to false allows to change the candidates
in another call but this field should be kept to false.
Setting this flag to true allows the Router to skip calls to the routing algorithm or even to skip some events of the router.
Implementations§
Trait Implementations§
source§impl Clone for RoutingNextCandidates
impl Clone for RoutingNextCandidates
source§fn clone(&self) -> RoutingNextCandidates
fn clone(&self) -> RoutingNextCandidates
Returns a copy of the value. Read more
1.0.0 · 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 RoutingNextCandidates
impl Debug for RoutingNextCandidates
source§impl Default for RoutingNextCandidates
impl Default for RoutingNextCandidates
source§fn default() -> RoutingNextCandidates
fn default() -> RoutingNextCandidates
Returns the “default value” for a type. Read more
source§impl From<RoutingNextCandidates> for Vec<CandidateEgress>
impl From<RoutingNextCandidates> for Vec<CandidateEgress>
source§fn from(candidates: RoutingNextCandidates) -> Self
fn from(candidates: RoutingNextCandidates) -> Self
Converts to this type from the input type.
source§impl IntoIterator for RoutingNextCandidates
impl IntoIterator for RoutingNextCandidates
§type Item = CandidateEgress
type Item = CandidateEgress
The type of the elements being iterated over.
§type IntoIter = <Vec<CandidateEgress> as IntoIterator>::IntoIter
type IntoIter = <Vec<CandidateEgress> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl RefUnwindSafe for RoutingNextCandidates
impl Send for RoutingNextCandidates
impl Sync for RoutingNextCandidates
impl Unpin for RoutingNextCandidates
impl UnwindSafe for RoutingNextCandidates
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