Struct ldap3::EntryStream[][src]

pub struct EntryStream<'a, 'b, S> { /* fields omitted */ }

Handle for obtaining a stream of search results.

User code can’t construct a stream directly, but only by using streaming_search() or streaming_search_with() on an LdapConn handle.

For compatibility, this struct’s name is different from the async version which is SearchStream. The protocol and behavior are the same, with one important difference: an EntryStream shares the Tokio runtime with LdapConn from which it’s obtained, but the two can’t be used in parallel, which is enforced by capturing the reference to LdapConn during the lifetime of EntryStream.

Implementations

impl<'a, 'b, S> EntryStream<'a, 'b, S> where
    S: AsRef<str> + Send + Sync + 'a, 
[src]

pub fn next(&mut self) -> Result<Option<ResultEntry>>[src]

pub fn result(self) -> LdapResult[src]

See SearchStream::finish().

The name result() was kept for backwards compatibility.

pub fn last_id(&mut self) -> RequestId[src]

Returns the Message ID of the initial Search.

This method calls Ldap::last_id() on the Ldap handle encapsulated by the underlying stream.

Auto Trait Implementations

impl<'a, 'b, S> !RefUnwindSafe for EntryStream<'a, 'b, S>

impl<'a, 'b, S> Send for EntryStream<'a, 'b, S>

impl<'a, 'b, S> Sync for EntryStream<'a, 'b, S>

impl<'a, 'b, S> Unpin for EntryStream<'a, 'b, S>

impl<'a, 'b, S> !UnwindSafe for EntryStream<'a, 'b, S>

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, 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.