Struct rfc5321::client_types::SmtpClientTimeouts
source · pub struct SmtpClientTimeouts {
pub connect_timeout: Duration,
pub banner_timeout: Duration,
pub ehlo_timeout: Duration,
pub mail_from_timeout: Duration,
pub rcpt_to_timeout: Duration,
pub data_timeout: Duration,
pub data_dot_timeout: Duration,
pub rset_timeout: Duration,
pub idle_timeout: Duration,
pub starttls_timeout: Duration,
pub auth_timeout: Duration,
}
Fields§
§connect_timeout: Duration
§ehlo_timeout: Duration
§mail_from_timeout: Duration
§rcpt_to_timeout: Duration
§data_timeout: Duration
§data_dot_timeout: Duration
§rset_timeout: Duration
§idle_timeout: Duration
§starttls_timeout: Duration
§auth_timeout: Duration
Implementations§
source§impl SmtpClientTimeouts
impl SmtpClientTimeouts
pub fn short_timeouts() -> Self
sourcepub fn total_message_send_duration(&self) -> Duration
pub fn total_message_send_duration(&self) -> Duration
Compute theoretical maximum lifetime of a single message send
Trait Implementations§
source§impl Clone for SmtpClientTimeouts
impl Clone for SmtpClientTimeouts
source§fn clone(&self) -> SmtpClientTimeouts
fn clone(&self) -> SmtpClientTimeouts
Returns a copy of the value. Read more
1.0.0 · 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 SmtpClientTimeouts
impl Debug for SmtpClientTimeouts
source§impl Default for SmtpClientTimeouts
impl Default for SmtpClientTimeouts
source§impl<'de> Deserialize<'de> for SmtpClientTimeouts
impl<'de> Deserialize<'de> for SmtpClientTimeouts
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
source§impl PartialEq for SmtpClientTimeouts
impl PartialEq for SmtpClientTimeouts
source§impl Serialize for SmtpClientTimeouts
impl Serialize for SmtpClientTimeouts
impl Copy for SmtpClientTimeouts
impl StructuralPartialEq for SmtpClientTimeouts
Auto Trait Implementations§
impl Freeze for SmtpClientTimeouts
impl RefUnwindSafe for SmtpClientTimeouts
impl Send for SmtpClientTimeouts
impl Sync for SmtpClientTimeouts
impl Unpin for SmtpClientTimeouts
impl UnwindSafe for SmtpClientTimeouts
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)