Enum mailin_embedded::SslConfig
source · pub enum SslConfig {
None,
SelfSigned {
cert_path: String,
key_path: String,
},
Trusted {
cert_path: String,
key_path: String,
chain_path: String,
},
}
Expand description
SslConfig
is used to configure the STARTTLS configuration of the server
Variants
None
Do not support STARTTLS
SelfSigned
Use a self-signed certificate for STARTTLS
Trusted
Fields
cert_path: String
Certificate path
key_path: String
Key file path
chain_path: String
Path to CA bundle
Use a certificate from an authority
Auto Trait Implementations
impl RefUnwindSafe for SslConfig
impl Send for SslConfig
impl Sync for SslConfig
impl Unpin for SslConfig
impl UnwindSafe for SslConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more