pub struct UnlimitedPool;Expand description
Unlimited pool — no concurrency restriction.
Trait Implementations§
Source§impl WorkerPool for UnlimitedPool
impl WorkerPool for UnlimitedPool
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 UnlimitedPool
impl RefUnwindSafe for UnlimitedPool
impl Send for UnlimitedPool
impl Sync for UnlimitedPool
impl Unpin for UnlimitedPool
impl UnsafeUnpin for UnlimitedPool
impl UnwindSafe for UnlimitedPool
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