Struct deadpool_sqlite::Manager
source · pub struct Manager { /* private fields */ }
Expand description
Manager
for creating and recycling SQLite Connection
s.
Implementations§
Trait Implementations§
source§impl Manager for Manager
impl Manager for Manager
§type Type = SyncWrapper<Connection>
type Type = SyncWrapper<Connection>
source§async fn create(&self) -> Result<Self::Type, Self::Error>
async fn create(&self) -> Result<Self::Type, Self::Error>
Creates a new instance of
Manager::Type
.source§async fn recycle(
&self,
conn: &mut Self::Type,
_: &Metrics,
) -> RecycleResult<Self::Error>
async fn recycle( &self, conn: &mut Self::Type, _: &Metrics, ) -> RecycleResult<Self::Error>
Tries to recycle an instance of
Manager::Type
. Read moreAuto Trait Implementations§
impl !Freeze for Manager
impl RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl UnwindSafe for Manager
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