pub struct ThreadSafeObjectPool<T> { /* private fields */ }Expand description
A pool of reusable objects that can be shared between threads.
Implementations§
Source§impl<T: Default> ThreadSafeObjectPool<T>
impl<T: Default> ThreadSafeObjectPool<T>
Source§impl<T: Default + Send + 'static> ThreadSafeObjectPool<T>
impl<T: Default + Send + 'static> ThreadSafeObjectPool<T>
Sourcepub fn default_pool() -> Arc<ThreadSafeObjectPool<T>> ⓘ
pub fn default_pool() -> Arc<ThreadSafeObjectPool<T>> ⓘ
The process-wide pool for T.
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for ThreadSafeObjectPool<T>
impl<T> RefUnwindSafe for ThreadSafeObjectPool<T>
impl<T> Send for ThreadSafeObjectPool<T>
impl<T> Sync for ThreadSafeObjectPool<T>
impl<T> Unpin for ThreadSafeObjectPool<T>
impl<T> UnsafeUnpin for ThreadSafeObjectPool<T>
impl<T> UnwindSafe for ThreadSafeObjectPool<T>
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more