pub struct ObjectPool { /* private fields */ }Implementations§
Source§impl ObjectPool
impl ObjectPool
pub async fn get_async<T: Any + Send + Sync>(&self) -> Option<Arc<T>>
pub async fn set_value<T: Any + Send + Sync>( &self, value: Arc<T>, shutdown: Option<ShutdownFn<T>>, )
pub async fn remove_value<T: Any + Send + Sync>(&self)
pub async fn remove_entry<T: Any + Send + Sync>(&self)
pub async fn wait_value<T: Any + Send + Sync>(&self)
pub async fn fulfill_value<T: Any + Send + Sync>( &self, value: Arc<T>, shutdown: Option<ShutdownFn<T>>, )
pub async fn shutdown(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ObjectPool
impl !UnwindSafe for ObjectPool
impl RefUnwindSafe for ObjectPool
impl Send for ObjectPool
impl Sync for ObjectPool
impl Unpin for ObjectPool
impl UnsafeUnpin for ObjectPool
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