pub struct TenantPoolManagerBuilder { /* private fields */ }Expand description
Builder for tenant pool manager.
Implementations§
Source§impl TenantPoolManagerBuilder
impl TenantPoolManagerBuilder
Sourcepub fn config(self, config: PoolConfig) -> Self
pub fn config(self, config: PoolConfig) -> Self
Set the pool config.
Use shared pool strategy.
Sourcepub fn per_tenant(self, max_pools: usize, pool_size: usize) -> Self
pub fn per_tenant(self, max_pools: usize, pool_size: usize) -> Self
Use per-tenant strategy.
Sourcepub fn build(self) -> TenantPoolManager
pub fn build(self) -> TenantPoolManager
Build the manager.
Trait Implementations§
Source§impl Default for TenantPoolManagerBuilder
impl Default for TenantPoolManagerBuilder
Source§fn default() -> TenantPoolManagerBuilder
fn default() -> TenantPoolManagerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TenantPoolManagerBuilder
impl RefUnwindSafe for TenantPoolManagerBuilder
impl Send for TenantPoolManagerBuilder
impl Sync for TenantPoolManagerBuilder
impl Unpin for TenantPoolManagerBuilder
impl UnwindSafe for TenantPoolManagerBuilder
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