pub struct SessionPoolConfig { /* private fields */ }Expand description
Configuration for a same-process SessionPool.
Implementations§
Source§impl SessionPoolConfig
impl SessionPoolConfig
Sourcepub fn new(capacity: usize) -> Self
pub fn new(capacity: usize) -> Self
Create a pool configuration with a fixed free-list capacity.
Sourcepub fn memory_policy(self, policy: SessionPoolMemoryPolicy) -> Self
pub fn memory_policy(self, policy: SessionPoolMemoryPolicy) -> Self
Set the policy used before cache-miss imports.
Sourcepub fn memory_policy_ref(&self) -> &SessionPoolMemoryPolicy
pub fn memory_policy_ref(&self) -> &SessionPoolMemoryPolicy
Return the configured memory policy.
Trait Implementations§
Source§impl Clone for SessionPoolConfig
impl Clone for SessionPoolConfig
Source§fn clone(&self) -> SessionPoolConfig
fn clone(&self) -> SessionPoolConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionPoolConfig
impl Debug for SessionPoolConfig
impl Eq for SessionPoolConfig
Source§impl PartialEq for SessionPoolConfig
impl PartialEq for SessionPoolConfig
impl StructuralPartialEq for SessionPoolConfig
Auto Trait Implementations§
impl Freeze for SessionPoolConfig
impl RefUnwindSafe for SessionPoolConfig
impl Send for SessionPoolConfig
impl Sync for SessionPoolConfig
impl Unpin for SessionPoolConfig
impl UnsafeUnpin for SessionPoolConfig
impl UnwindSafe for SessionPoolConfig
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