#[non_exhaustive]pub enum TlsMode {
Implicit,
StartTls,
None,
}Expand description
TLS mode for the initial connection (RFC 8314).
This type lives in daaki-message rather than in the protocol crates
because both daaki-imap and daaki-smtp need it, and daaki-message
is already the shared dependency in the workspace. Both protocol crates
re-export it at their crate root.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implicit
Connect directly over TLS (RFC 8314 Section 3.3).
StartTls
Connect in cleartext, then upgrade via STARTTLS.
None
No TLS (testing only — should not be used in production).
Trait Implementations§
impl Copy for TlsMode
impl Eq for TlsMode
impl StructuralPartialEq for TlsMode
Auto Trait Implementations§
impl Freeze for TlsMode
impl RefUnwindSafe for TlsMode
impl Send for TlsMode
impl Sync for TlsMode
impl Unpin for TlsMode
impl UnsafeUnpin for TlsMode
impl UnwindSafe for TlsMode
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