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 streaming_search() method.

Methods

impl Ldap
[src]

Abandon the request identified by msgid. Since this requires knowing the msgid of an operation, it currently works only for streaming searches, invoked via methods on structures representing those searches. See EntryStream::abandon() and SearchStream::get_abandon_channel().

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. If timeout is not None, it specifies how long the connection attempt will take before returning an error.

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. If timeout is not None, it specifies how long the connection attempt will take before returning an error.

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 also LdapConn::streaming_search().

The returned future resolves to a SearchStream, which should be iterated through to obtain results. Before starting the iteration, the receiver future, which will yield the overall result of the search after the stream is drained, should be retrieved from the stream instance with get_result_rx(). The stream and the receiver should be polled concurrently with Future::join().

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.