Struct rbatis::DefaultPool
source · pub struct DefaultPool {
pub manager: ConnManagerProxy,
pub inner: Pool<ConnManagerProxy>,
pub timeout: AtomicDuration,
}
Fields§
§manager: ConnManagerProxy
§inner: Pool<ConnManagerProxy>
§timeout: AtomicDuration
Trait Implementations§
source§impl Pool for FastPool
impl Pool for FastPool
source§fn get<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connection>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
FastPool: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connection>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
FastPool: 'async_trait,
get an connection from pool
source§fn get_timeout<'life0, 'async_trait>(
&'life0 self,
d: Duration
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connection>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
FastPool: 'async_trait,
fn get_timeout<'life0, 'async_trait>(
&'life0 self,
d: Duration
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connection>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
FastPool: 'async_trait,
get timeout from pool
fn set_timeout<'life0, 'async_trait>(
&'life0 self,
timeout: Option<Duration>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
FastPool: 'async_trait,
fn set_conn_max_lifetime<'life0, 'async_trait>(
&'life0 self,
_max_lifetime: Option<Duration>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
FastPool: 'async_trait,
fn set_max_idle_conns<'life0, 'async_trait>(
&'life0 self,
_n: u64
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
FastPool: 'async_trait,
fn set_max_open_conns<'life0, 'async_trait>(
&'life0 self,
n: u64
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
FastPool: 'async_trait,
source§fn driver_type(&self) -> &str
fn driver_type(&self) -> &str
get driver_type from manager: ConnManager
Auto Trait Implementations§
impl !Freeze for FastPool
impl !RefUnwindSafe for FastPool
impl Send for FastPool
impl Sync for FastPool
impl Unpin for FastPool
impl !UnwindSafe for FastPool
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