Trait smtp_client::Config
source · [−]pub trait Config {
Show 13 methods
fn ehlo_hostname(&self) -> Hostname<String>;
fn tls_connect<'life0, 'async_trait, IO>(
&'life0 self,
io: IO
) -> Pin<Box<dyn Future<Output = Result<DynAsyncReadWrite>> + Send + 'async_trait>>
where
IO: 'static + Unpin + Send + AsyncRead + AsyncWrite,
IO: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait;
fn can_do_tls(&self) -> bool { ... }
fn must_do_tls(&self) -> bool { ... }
fn banner_read_timeout(&self) -> Duration { ... }
fn command_write_timeout(&self) -> Duration { ... }
fn ehlo_reply_timeout(&self) -> Duration { ... }
fn starttls_reply_timeout(&self) -> Duration { ... }
fn mail_reply_timeout(&self) -> Duration { ... }
fn rcpt_reply_timeout(&self) -> Duration { ... }
fn data_init_reply_timeout(&self) -> Duration { ... }
fn data_block_write_timeout(&self) -> Duration { ... }
fn data_end_reply_timeout(&self) -> Duration { ... }
}
Required methods
fn ehlo_hostname(&self) -> Hostname<String>
fn tls_connect<'life0, 'async_trait, IO>(
&'life0 self,
io: IO
) -> Pin<Box<dyn Future<Output = Result<DynAsyncReadWrite>> + Send + 'async_trait>> where
IO: 'static + Unpin + Send + AsyncRead + AsyncWrite,
IO: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn tls_connect<'life0, 'async_trait, IO>(
&'life0 self,
io: IO
) -> Pin<Box<dyn Future<Output = Result<DynAsyncReadWrite>> + Send + 'async_trait>> where
IO: 'static + Unpin + Send + AsyncRead + AsyncWrite,
IO: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Note: If this function can only fail, make can_do_tls return false