pub struct SlotScaler;Expand description
In-process concurrency slots: capacity follows the request immediately.
Trait Implementations§
Source§impl Clone for SlotScaler
impl Clone for SlotScaler
impl Copy for SlotScaler
Source§impl Debug for SlotScaler
impl Debug for SlotScaler
Source§impl Default for SlotScaler
impl Default for SlotScaler
Source§impl Scaler for SlotScaler
impl Scaler for SlotScaler
Source§fn scale_to<'life0, 'life1, 'async_trait>(
&'life0 self,
_pool: &'life1 str,
desired: u32,
) -> Pin<Box<dyn Future<Output = Result<u32, ScaleError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn scale_to<'life0, 'life1, 'async_trait>(
&'life0 self,
_pool: &'life1 str,
desired: u32,
) -> Pin<Box<dyn Future<Output = Result<u32, ScaleError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Request
desired workers for pool; return the capacity available now.Auto Trait Implementations§
impl Freeze for SlotScaler
impl RefUnwindSafe for SlotScaler
impl Send for SlotScaler
impl Sync for SlotScaler
impl Unpin for SlotScaler
impl UnsafeUnpin for SlotScaler
impl UnwindSafe for SlotScaler
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