pub struct DynamicThreadPool { /* private fields */ }Implementations§
Source§impl DynamicThreadPool
impl DynamicThreadPool
pub fn new() -> Self
pub fn with_limits(min: usize, max: usize) -> Self
pub fn current_threads(&self) -> usize
pub fn set_thread_count(&self, count: usize)
pub fn min_threads(&self) -> usize
pub fn max_threads(&self) -> usize
pub fn target_utilization(&self) -> f64
pub fn active_workers(&self) -> usize
pub fn total_requests(&self) -> u64
pub fn current_rps(&self) -> u64
pub fn utilization(&self) -> f64
pub fn record_request(&self)
pub fn release_request(&self)
pub fn should_scale(&self) -> Option<bool>
Auto Trait Implementations§
impl !Freeze for DynamicThreadPool
impl RefUnwindSafe for DynamicThreadPool
impl Send for DynamicThreadPool
impl Sync for DynamicThreadPool
impl Unpin for DynamicThreadPool
impl UnsafeUnpin for DynamicThreadPool
impl UnwindSafe for DynamicThreadPool
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