pub struct ManagedDatabasePool(/* private fields */);Expand description
Wrapper for graceful shutdown integration with crate::run!.
Wraps a DatabasePool so it can be registered as a Task
with the modo runtime. On shutdown all database handles (default and shards)
are dropped.
Created by managed_pool.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ManagedDatabasePool
impl !RefUnwindSafe for ManagedDatabasePool
impl Send for ManagedDatabasePool
impl Sync for ManagedDatabasePool
impl Unpin for ManagedDatabasePool
impl UnsafeUnpin for ManagedDatabasePool
impl !UnwindSafe for ManagedDatabasePool
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