pub struct TaskArgsPool { /* private fields */ }Expand description
A pool of reusable task arguments
Implementations§
Source§impl TaskArgsPool
impl TaskArgsPool
Sourcepub fn with_capacity(max_size: usize) -> Self
pub fn with_capacity(max_size: usize) -> Self
Create a new task args pool with specified maximum capacity
Sourcepub fn acquire(&self) -> PooledTaskArgs
pub fn acquire(&self) -> PooledTaskArgs
Acquire task arguments from the pool
Trait Implementations§
Source§impl Clone for TaskArgsPool
impl Clone for TaskArgsPool
Source§fn clone(&self) -> TaskArgsPool
fn clone(&self) -> TaskArgsPool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskArgsPool
impl Debug for TaskArgsPool
Auto Trait Implementations§
impl Freeze for TaskArgsPool
impl RefUnwindSafe for TaskArgsPool
impl Send for TaskArgsPool
impl Sync for TaskArgsPool
impl Unpin for TaskArgsPool
impl UnwindSafe for TaskArgsPool
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