pub struct ManagedDatabase(/* private fields */);Expand description
Wrapper for graceful shutdown integration with crate::run!.
Wraps a Database so it can be registered as a Task with the
modo runtime. On shutdown the inner Database is dropped, which
releases the underlying libsql connection and database handle once the
last clone is gone.
Created by managed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ManagedDatabase
impl !RefUnwindSafe for ManagedDatabase
impl Send for ManagedDatabase
impl Sync for ManagedDatabase
impl Unpin for ManagedDatabase
impl UnsafeUnpin for ManagedDatabase
impl !UnwindSafe for ManagedDatabase
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