Struct ldap3::EntryStream [−][src]
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]
S: AsRef<str> + Send + Sync + 'a,
pub fn next(&mut self) -> Result<Option<ResultEntry>>
[src]
See SearchStream::next()
.
pub fn result(self) -> LdapResult
[src]
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]
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, 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>,