Struct ldap3::result::ExopResult
source · pub struct ExopResult(pub Exop, pub LdapResult);
Expand description
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.
Tuple Fields§
§0: Exop
§1: LdapResult
Implementations§
source§impl ExopResult
impl ExopResult
sourcepub fn success(self) -> Result<(Exop, LdapResult)>
pub fn success(self) -> Result<(Exop, LdapResult)>
If the result code is zero, return an anonymous tuple of component structs
wrapped in Ok()
, otherwise wrap the LdapResult
part in an LdapError
.
sourcepub fn non_error(self) -> Result<(Exop, LdapResult)>
pub fn non_error(self) -> Result<(Exop, LdapResult)>
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 LdapError
.
Trait Implementations§
source§impl Clone for ExopResult
impl Clone for ExopResult
source§fn clone(&self) -> ExopResult
fn clone(&self) -> ExopResult
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for ExopResult
impl Send for ExopResult
impl Sync for ExopResult
impl Unpin for ExopResult
impl UnwindSafe for ExopResult
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
Mutably borrows from an owned value. Read more