pub struct EntriesOnly { /* private fields */ }Expand description
Adapter which returns just the directory entries.
This adapter mimics the earlier behavior of the crate, where referrals were collected and returned in the overall result of the Search, and nothing but directory entries were returned to the users.
To invoke a streaming Search with this adapter on the ldap handle, use
let mut stream = ldap.streaming_search_with(
EntriesOnly::new(),
"",
Scope::Base,
"(objectClass=*)",
vec!["+"]
);Implementations§
Source§impl EntriesOnly
Create a new adapter instance.
impl EntriesOnly
Create a new adapter instance.
Trait Implementations§
Source§impl<'a, S, A> Adapter<'a, S, A> for EntriesOnly
impl<'a, S, A> Adapter<'a, S, A> for EntriesOnly
Source§fn start<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
stream: &'life1 mut SearchStream<'a, S, A>,
base: &'life2 str,
scope: Scope,
filter: &'life3 str,
attrs: A,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn start<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
stream: &'life1 mut SearchStream<'a, S, A>,
base: &'life2 str,
scope: Scope,
filter: &'life3 str,
attrs: A,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Initialize the stream.
Source§fn next<'life0, 'life1, 'async_trait>(
&'life0 mut self,
stream: &'life1 mut SearchStream<'a, S, A>,
) -> Pin<Box<dyn Future<Output = Result<Option<ResultEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn next<'life0, 'life1, 'async_trait>(
&'life0 mut self,
stream: &'life1 mut SearchStream<'a, S, A>,
) -> Pin<Box<dyn Future<Output = Result<Option<ResultEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch the next entry from the stream.
Source§fn finish<'life0, 'life1, 'async_trait>(
&'life0 mut self,
stream: &'life1 mut SearchStream<'a, S, A>,
) -> Pin<Box<dyn Future<Output = LdapResult> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn finish<'life0, 'life1, 'async_trait>(
&'life0 mut self,
stream: &'life1 mut SearchStream<'a, S, A>,
) -> Pin<Box<dyn Future<Output = LdapResult> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return the result from the stream.
Source§impl Clone for EntriesOnly
impl Clone for EntriesOnly
Source§fn clone(&self) -> EntriesOnly
fn clone(&self) -> EntriesOnly
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntriesOnly
impl Debug for EntriesOnly
impl SoloMarker for EntriesOnly
Auto Trait Implementations§
impl Freeze for EntriesOnly
impl RefUnwindSafe for EntriesOnly
impl Send for EntriesOnly
impl Sync for EntriesOnly
impl Unpin for EntriesOnly
impl UnwindSafe for EntriesOnly
Blanket Implementations§
Source§impl<'a, S, A, T> AdapterClone<'a, S, A> for T
impl<'a, S, A, T> AdapterClone<'a, S, A> for T
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
Mutably borrows from an owned value. Read more