pub struct SmtpOutboundConfig {
pub idle_timeout_secs: u64,
pub per_remote_cap: usize,
pub global_cap: usize,
}Expand description
Configuration for outbound SMTP connection pooling.
Controls the pool of reusable outbound SMTP connections maintained by
OutboundPool. Defaults are intentionally conservative; tune for your
deployment’s message volume.
§TOML example
[smtp.outbound]
idle_timeout_secs = 30
per_remote_cap = 8
global_cap = 256Fields§
§idle_timeout_secs: u64Default: 30. Seconds a connection may sit idle before the background
reaper closes it.
per_remote_cap: usizeDefault: 8. Maximum pooled connections to a single remote address.
global_cap: usizeDefault: 256. Total pooled connections across all remote addresses.
Trait Implementations§
Source§impl Clone for SmtpOutboundConfig
impl Clone for SmtpOutboundConfig
Source§fn clone(&self) -> SmtpOutboundConfig
fn clone(&self) -> SmtpOutboundConfig
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 SmtpOutboundConfig
impl Debug for SmtpOutboundConfig
Source§impl Default for SmtpOutboundConfig
impl Default for SmtpOutboundConfig
Source§impl<'de> Deserialize<'de> for SmtpOutboundConfig
impl<'de> Deserialize<'de> for SmtpOutboundConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SmtpOutboundConfig
impl RefUnwindSafe for SmtpOutboundConfig
impl Send for SmtpOutboundConfig
impl Sync for SmtpOutboundConfig
impl Unpin for SmtpOutboundConfig
impl UnsafeUnpin for SmtpOutboundConfig
impl UnwindSafe for SmtpOutboundConfig
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