Trait Config

Source
pub trait Config {
Show 13 methods // 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 + 'async_trait, Self: 'async_trait, 'life0: 'async_trait; // Provided methods 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§

Source

fn ehlo_hostname(&self) -> Hostname<String>

Source

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 + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Note: If this function can only fail, make can_do_tls return false

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§