pub struct RoundRobinSelector {
pub i: usize,
}
Expand description
Select candidates use round robin
Fields§
§i: usize
Trait Implementations§
Source§impl FromConfig<RoundRobinSelectorConfig> for RoundRobinSelector
impl FromConfig<RoundRobinSelectorConfig> for RoundRobinSelector
fn from_config<'async_trait>(
_config: RoundRobinSelectorConfig,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
Source§impl<T> Select<T, RoundRobinSelectorConfig> for RoundRobinSelectorwhere
T: Sync,
§Parameters
- T: input
impl<T> Select<T, RoundRobinSelectorConfig> for RoundRobinSelectorwhere
T: Sync,
§Parameters
- T: input
Source§fn select<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
_t: &'life1 T,
candidates: &'life2 [&'life3 usize],
) -> Pin<Box<dyn Future<Output = Result<Vec<usize>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn select<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
_t: &'life1 T,
candidates: &'life2 [&'life3 usize],
) -> Pin<Box<dyn Future<Output = Result<Vec<usize>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
candidates
: index of downstreams
Auto Trait Implementations§
impl Freeze for RoundRobinSelector
impl RefUnwindSafe for RoundRobinSelector
impl Send for RoundRobinSelector
impl Sync for RoundRobinSelector
impl Unpin for RoundRobinSelector
impl UnwindSafe for RoundRobinSelector
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