pub struct PoolConfig {
pub max_connections: usize,
pub max_idle_time: Duration,
pub max_connection_age: Duration,
pub connect_timeout: Duration,
pub read_timeout: Duration,
}Expand description
FTP connection pool configuration
Fields§
§max_connections: usizeMaximum number of connections in the pool
max_idle_time: DurationMaximum idle time before a connection is considered stale
max_connection_age: DurationMaximum age of a connection before it’s evicted
connect_timeout: DurationConnection timeout for new connections
read_timeout: DurationRead timeout for operations
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