pub struct EntryStream<'a, 'b, S, A> { /* private fields */ }Expand description
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§
Source§impl<'a, 'b, S, A> EntryStream<'a, 'b, S, A>
impl<'a, 'b, S, A> EntryStream<'a, 'b, S, A>
Sourcepub fn next(&mut self) -> Result<Option<ResultEntry>>
pub fn next(&mut self) -> Result<Option<ResultEntry>>
See SearchStream::next().
Sourcepub fn result(self) -> LdapResult
pub fn result(self) -> LdapResult
The name result() was kept for backwards compatibility.
Sourcepub fn last_id(&mut self) -> RequestId
pub fn last_id(&mut self) -> RequestId
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, A> Freeze for EntryStream<'a, 'b, S, A>
impl<'a, 'b, S, A> !RefUnwindSafe for EntryStream<'a, 'b, S, A>
impl<'a, 'b, S, A> Send for EntryStream<'a, 'b, S, A>
impl<'a, 'b, S, A> Sync for EntryStream<'a, 'b, S, A>
impl<'a, 'b, S, A> Unpin for EntryStream<'a, 'b, S, A>
impl<'a, 'b, S, A> !UnwindSafe for EntryStream<'a, 'b, S, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more