pub struct Polling<K> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<K: Clone + Eq + Send + Sync> BalancingStrategy<K> for Polling<K>
impl<K: Clone + Eq + Send + Sync> BalancingStrategy<K> for Polling<K>
fn add<'life0, 'async_trait>(
&'life0 self,
k: K,
n: usize,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove<'life0, 'async_trait>(
&'life0 self,
k: K,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn select<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<K>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<K> !Freeze for Polling<K>
impl<K> !RefUnwindSafe for Polling<K>
impl<K> !UnwindSafe for Polling<K>
impl<K> Send for Polling<K>where
K: Send,
impl<K> Sync for Polling<K>
impl<K> Unpin for Polling<K>where
K: Unpin,
impl<K> UnsafeUnpin for Polling<K>
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