pub struct PoolBuilder<S: PoolStore> { /* private fields */ }Expand description
Builder for constructing a Pool.
Implementations§
Source§impl<S: PoolStore + 'static> PoolBuilder<S>
impl<S: PoolStore + 'static> PoolBuilder<S>
Sourcepub fn config(self, config: PoolConfig) -> Self
pub fn config(self, config: PoolConfig) -> Self
Set the global slot configuration.
Sourcepub fn slot_config(self, config: SlotConfig) -> Self
pub fn slot_config(self, config: SlotConfig) -> Self
Add a per-slot configuration override.
Call multiple times for multiple slots. Slot configs are applied
in order: the first call sets slot-0’s config, the second slot-1’s, etc.
Slots without an explicit config get SlotConfig::default().
Auto Trait Implementations§
impl<S> Freeze for PoolBuilder<S>where
S: Freeze,
impl<S> RefUnwindSafe for PoolBuilder<S>where
S: RefUnwindSafe,
impl<S> Send for PoolBuilder<S>
impl<S> Sync for PoolBuilder<S>
impl<S> Unpin for PoolBuilder<S>where
S: Unpin,
impl<S> UnsafeUnpin for PoolBuilder<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for PoolBuilder<S>where
S: UnwindSafe,
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