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
Source§type Item = CandidateEgress
type Item = CandidateEgress
The type of the elements being iterated over.
Source§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 Freeze for RoutingNextCandidates
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more