pub struct RandomSelectorConfig {}Trait Implementations§
Source§impl<'de> Deserialize<'de> for RandomSelectorConfig
impl<'de> Deserialize<'de> for RandomSelectorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromConfig<RandomSelectorConfig> for RandomSelector
impl FromConfig<RandomSelectorConfig> for RandomSelector
fn from_config<'async_trait>(
_config: RandomSelectorConfig,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
Source§impl FromPath for RandomSelectorConfig
impl FromPath for RandomSelectorConfig
Source§impl<T> Select<T, RandomSelectorConfig> for RandomSelectorwhere
T: Sync,
§Parameters
- T: input
impl<T> Select<T, RandomSelectorConfig> for RandomSelectorwhere
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 RandomSelectorConfig
impl RefUnwindSafe for RandomSelectorConfig
impl Send for RandomSelectorConfig
impl Sync for RandomSelectorConfig
impl Unpin for RandomSelectorConfig
impl UnwindSafe for RandomSelectorConfig
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