[][src]Struct ldap3::LdapConnSettings

pub struct LdapConnSettings { /* fields omitted */ }

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]

impl Default for LdapConnSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.