Struct ldap3::result::SearchResult
[−]
[src]
pub struct SearchResult(pub Vec<ResultEntry>, pub LdapResult);
Wrapper for results of a Search operation which returns all entries at once.
The wrapper exists so that methods success()
and
non_error()
can be called on an instance. Those methods
destructure the wrapper and return its components as elements of an anonymous
tuple.
Methods
impl SearchResult
[src]
fn success(self) -> Result<(Vec<ResultEntry>, LdapResult), Error>
If the result code is zero, return an anonymous tuple of component structs
wrapped in Ok()
, otherwise wrap the LdapResult
part in an io::Error
.
fn non_error(self) -> Result<(Vec<ResultEntry>, LdapResult), Error>
If the result code is 0 or 10 (referral), return an anonymous tuple of component
structs wrapped in Ok()
, otherwise wrap the LdapResult
part in an io::Error
.
Trait Implementations
impl Clone for SearchResult
[src]
fn clone(&self) -> SearchResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more