pub struct RoundRobin { /* private fields */ }Expand description
Deterministic rotating single-recipient selection.
The cursor names the next position, wraps at the current membership size, and is repaired after removal. This ordering is Bombay policy, not an actor model guarantee.
Trait Implementations§
Source§impl Clone for RoundRobin
impl Clone for RoundRobin
Source§fn clone(&self) -> RoundRobin
fn clone(&self) -> RoundRobin
Returns a duplicate 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 RoundRobin
impl Debug for RoundRobin
Source§impl Default for RoundRobin
impl Default for RoundRobin
Source§fn default() -> RoundRobin
fn default() -> RoundRobin
Returns the “default value” for a type. Read more
Source§impl PartialEq for RoundRobin
impl PartialEq for RoundRobin
Source§impl<Route: DeliveryRoute + Clone + PartialEq> RoutingStrategy<Route> for RoundRobin
impl<Route: DeliveryRoute + Clone + PartialEq> RoutingStrategy<Route> for RoundRobin
Source§type Observation = Never
type Observation = Never
Closed observation type accepted by this policy.
Source§fn select(
&mut self,
members: &[Route],
_: &<Route::Protocol as Protocol>::Msg,
) -> Option<usize>
fn select( &mut self, members: &[Route], _: &<Route::Protocol as Protocol>::Msg, ) -> Option<usize>
Select at most one index from this exact typed membership snapshot. Read more
Source§fn observe(
&mut self,
_: &[Route],
observation: Never,
) -> Result<(), RoutingObservationRejection<Never, Never>>
fn observe( &mut self, _: &[Route], observation: Never, ) -> Result<(), RoutingObservationRejection<Never, Never>>
Fold one typed observation against the same membership snapshot. Read more
impl Copy for RoundRobin
impl Eq for RoundRobin
impl StructuralPartialEq for RoundRobin
Auto Trait Implementations§
impl Freeze for RoundRobin
impl RefUnwindSafe for RoundRobin
impl Send for RoundRobin
impl Sync for RoundRobin
impl Unpin for RoundRobin
impl UnsafeUnpin for RoundRobin
impl UnwindSafe for RoundRobin
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