Struct ldap3::result::ExopResult
[−]
[src]
pub struct ExopResult(pub Exop, pub LdapResult);
Wrapper for the result of an Extended operation.
Similarly to SearchResult
, methods success()
and non_error()
can be called on an instance,
and will destructure the wrapper into an anonymous tuple of its components.
Methods
impl ExopResult
[src]
fn success(self) -> Result<(Exop, 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<(Exop, 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 ExopResult
[src]
fn clone(&self) -> ExopResult
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