pub struct FixedPool { /* private fields */ }Expand description
Fixed-size pool with a global concurrency limit.
Implementations§
Trait Implementations§
Source§impl WorkerPool for FixedPool
impl WorkerPool for FixedPool
Source§fn acquire(&self, _resource_tag: Option<&str>) -> bool
fn acquire(&self, _resource_tag: Option<&str>) -> bool
Try to acquire a slot for a task. Returns true if available.
Source§fn add_resource(&self, _tag: &str)
fn add_resource(&self, _tag: &str)
Add a resource to the pool (for dynamic pools).
Source§fn remove_resource(&self, _tag: &str)
fn remove_resource(&self, _tag: &str)
Remove a resource from the pool (for dynamic pools).
Auto Trait Implementations§
impl !Freeze for FixedPool
impl RefUnwindSafe for FixedPool
impl Send for FixedPool
impl Sync for FixedPool
impl Unpin for FixedPool
impl UnsafeUnpin for FixedPool
impl UnwindSafe for FixedPool
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