pub enum Encryption {
None,
StartTls,
Ldaps,
}Expand description
How a connection gets encrypted, if it does.
Variants§
None
Plain TCP. Everything, the password included, is on the wire in the
clear — see LdapConfig::allow_plaintext_password for the one way to
send a bind over it.
StartTls
Connect in the clear, then upgrade with the StartTLS extended operation. The default for port 389.
Ldaps
TLS from the first byte. The default for port 636.
Trait Implementations§
Source§impl Clone for Encryption
impl Clone for Encryption
impl Copy for Encryption
Source§impl Debug for Encryption
impl Debug for Encryption
Source§impl Default for Encryption
impl Default for Encryption
impl Eq for Encryption
Source§impl PartialEq for Encryption
impl PartialEq for Encryption
impl StructuralPartialEq for Encryption
Auto Trait Implementations§
impl Freeze for Encryption
impl RefUnwindSafe for Encryption
impl Send for Encryption
impl Sync for Encryption
impl Unpin for Encryption
impl UnsafeUnpin for Encryption
impl UnwindSafe for Encryption
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