Struct ldap3::Ldap [] [src]

pub struct Ldap { /* fields omitted */ }

LDAP connection. *

This is a low-level structure representing an LDAP connection, which provides methods returning futures of various LDAP operations. Inherent methods for opening a connection themselves return futures which, if successfully resolved, yield the structure instance. That instance can be clone()d if the connection should be reused for multiple operations.

All methods on an instance of this structure, except with_*, return a future which must be polled inside some futures chain to obtain the appropriate result. The synchronous interface provides methods with exactly the same name and parameters, and identical semantics. Differences in expected use are noted where they exist, such as the search() method.

Methods

impl Ldap
[src]

impl Ldap
[src]

impl Ldap
[src]

impl Ldap
[src]

impl Ldap
[src]

impl Ldap
[src]

impl Ldap
[src]

Connect to an LDAP server without using TLS, using an IP address/port number in addr, and an event loop handle in handle.

Connect to an LDAP server with an attempt to negotiate TLS immediately after establishing the TCP connection, using the host name and port number in addr, and an event loop handle in handle. The connection must be by host name for TLS hostname check to work.

Connect to an LDAP server through a Unix domain socket, using the path in path, and an event loop handle in handle.

impl Ldap
[src]

impl Ldap
[src]

impl Ldap
[src]

See LdapConn::search().

The returned future resolves to a pair consisting of a SearchStream, which should be iterated through to obtain results, and a receiver future which will yield the overall result of the search after the stream is drained. They should be polled concurrently with Future::join().

The true synchronous counterpart of this method is not the identically named LdapConn::search(), but rather LdapConn::streaming_search().

impl Ldap
[src]

Trait Implementations

impl Clone for Ldap
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Service for Ldap
[src]

Requests handled by the service.

Responses given by the service.

Errors produced by the service.

The future response value.

Process the request and return the response asynchronously.