pub struct PoolConfig {
pub max_connections: usize,
pub host: String,
pub port: u16,
pub tls: bool,
}Expand description
Configuration for the connection pool.
Fields§
§max_connections: usizeMaximum number of concurrent connections.
host: StringHost to connect to.
port: u16gRPC port (default 6334).
tls: boolWhether to use TLS (rustls).
Implementations§
Source§impl PoolConfig
impl PoolConfig
Sourcepub fn max_connections(self, max: usize) -> Self
pub fn max_connections(self, max: usize) -> Self
Set maximum connections.
Sourcepub fn from_qail_config(qail: &QailConfig) -> Option<Self>
pub fn from_qail_config(qail: &QailConfig) -> Option<Self>
Create config from centralized QailConfig.
Reads [qdrant] section; returns None if section is absent.
Uses gRPC endpoint (port 6334) by default.
Sourcepub fn from_qail_config_ref(qdrant: &QdrantConfig) -> Self
pub fn from_qail_config_ref(qdrant: &QdrantConfig) -> Self
Create config directly from a &QdrantConfig reference.
Used by the gateway which already has the config extracted.
Trait Implementations§
Source§impl Clone for PoolConfig
impl Clone for PoolConfig
Source§fn clone(&self) -> PoolConfig
fn clone(&self) -> PoolConfig
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 PoolConfig
impl Debug for PoolConfig
Auto Trait Implementations§
impl Freeze for PoolConfig
impl RefUnwindSafe for PoolConfig
impl Send for PoolConfig
impl Sync for PoolConfig
impl Unpin for PoolConfig
impl UnsafeUnpin for PoolConfig
impl UnwindSafe for PoolConfig
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