[−][src]Struct ldap3::LdapConnSettings
Additional settings for an LDAP connection.
The structure is opaque for better extensibility. An instance with
default values is constructed by new()
, and all
available settings can be replaced through a builder-like interface,
by calling the appropriate functions.
Implementations
impl LdapConnSettings
[src]
pub fn new() -> LdapConnSettings
[src]
Create an instance of the structure with default settings.
pub fn set_conn_timeout(self, timeout: Duration) -> Self
[src]
Set the connection timeout. If a connetion to the server can't
be established before the timeout expires, an error will be
returned to the user. Defaults to None
, meaning an infinite
timeout.
pub fn set_connector(self, connector: TlsConnector) -> Self
[src]
Set a custom TLS connector, which enables setting various options
when establishing a secure connection. The default of None
will
use a connector with default settings.
pub fn set_starttls(self, starttls: bool) -> Self
[src]
If true
, use the StartTLS extended operation to establish a
secure connection. Defaults to false
.
pub fn starttls(&self) -> bool
[src]
The starttls
settings indicates whether the StartTLS extended
operation will be used to establish a secure connection.
pub fn set_no_tls_verify(self, no_tls_verify: bool) -> Self
[src]
If true
, try to establish a TLS connection without certificate
verification. Defaults to false
.
Trait Implementations
impl Clone for LdapConnSettings
[src]
pub fn clone(&self) -> LdapConnSettings
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for LdapConnSettings
[src]
pub fn default() -> LdapConnSettings
[src]
Auto Trait Implementations
impl RefUnwindSafe for LdapConnSettings
[src]
impl Send for LdapConnSettings
[src]
impl Sync for LdapConnSettings
[src]
impl Unpin for LdapConnSettings
[src]
impl UnwindSafe for LdapConnSettings
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,