Struct deadpool_sqlite::Manager [−][src]
pub struct Manager { /* fields omitted */ }Expand description
The manager for creating and recyling SQLite connections
Implementations
impl Manager[src]
impl Manager[src]pub fn from_config(config: &Config) -> Self[src]
pub fn from_config(config: &Config) -> Self[src]Create manager using a deadpool_sqlite::Config
Trait Implementations
impl Manager for Manager[src]
impl Manager for Manager[src]type Type = ConnectionWrapper
type Type = ConnectionWrapperType that the manager creates and recycles.
type Error = Error
type Error = ErrorThe error that the manager can return when creating and recycling objects. Read more
fn create<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Type, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
fn create<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Type, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]Create a new instance of Type
fn recycle<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Type
) -> Pin<Box<dyn Future<Output = RecycleResult<Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
fn recycle<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Type
) -> Pin<Box<dyn Future<Output = RecycleResult<Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]Try to recycle an instance of Type returning an Error if the
object could not be recycled. Read more
fn detach(&self, _obj: &mut Self::Type)[src]
fn detach(&self, _obj: &mut Self::Type)[src]Detach an instance of Type from this manager. This method is
called when using the Object::take function for removing
an object from the pool. If the manager doesn’t hold any
references to the handed out objects the default implementation
can be used which does nothing. Read more