mailin_embedded/
ssl.rs

1use std::io::{Read, Write};
2
3/// `SslConfig` is used to configure the STARTTLS configuration of the server
4pub enum SslConfig {
5    /// Do not support STARTTLS
6    None,
7    /// Use a self-signed certificate for STARTTLS
8    SelfSigned {
9        /// Certificate path
10        cert_path: String,
11        /// Path to key file
12        key_path: String,
13    },
14    /// Use a certificate from an authority
15    Trusted {
16        /// Certificate path
17        cert_path: String,
18        /// Key file path
19        key_path: String,
20        /// Path to CA bundle
21        chain_path: String,
22    },
23}
24
25pub trait Stream: Read + Write {}