#[non_exhaustive]pub enum ResultCode {
Show 40 variants
Success,
OperationsError,
ProtocolError,
TimeLimitExceeded,
SizeLimitExceeded,
CompareFalse,
CompareTrue,
AuthMethodNotSupported,
StrongerAuthRequired,
Referral,
AdminLimitExceeded,
UnavailableCriticalExtension,
ConfidentialityRequired,
SaslBindInProgress,
NoSuchAttribute,
UndefinedAttributeType,
InappropriateMatching,
ConstraintViolation,
AttributeOrValueExists,
InvalidAttributeSyntax,
NoSuchObject,
AliasProblem,
InvalidDnSyntax,
AliasDereferencingProblem,
InappropriateAuthentication,
InvalidCredentials,
InsufficientAccessRights,
Busy,
Unavailable,
UnwillingToPerform,
LoopDetect,
NamingViolation,
ObjectClassViolation,
NotAllowedOnNonLeaf,
NotAllowedOnRdn,
EntryAlreadyExists,
ObjectClassModsProhibited,
AffectsMultipleDsas,
Other,
Unknown(i32),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Success
OperationsError
ProtocolError
TimeLimitExceeded
SizeLimitExceeded
CompareFalse
CompareTrue
AuthMethodNotSupported
StrongerAuthRequired
Referral
AdminLimitExceeded
ConfidentialityRequired
SaslBindInProgress
NoSuchAttribute
UndefinedAttributeType
InappropriateMatching
ConstraintViolation
AttributeOrValueExists
InvalidAttributeSyntax
NoSuchObject
AliasProblem
InvalidDnSyntax
AliasDereferencingProblem
InappropriateAuthentication
InvalidCredentials
InsufficientAccessRights
Busy
UnwillingToPerform
LoopDetect
NamingViolation
ObjectClassViolation
NotAllowedOnNonLeaf
NotAllowedOnRdn
EntryAlreadyExists
ObjectClassModsProhibited
AffectsMultipleDsas
Other
Unknown(i32)
Implementations§
Source§impl ResultCode
impl ResultCode
Source§impl ResultCode
impl ResultCode
pub fn is_success(&self) -> bool
pub fn is_credential_error(&self) -> bool
pub fn is_transient(&self) -> bool
pub fn is_referral(&self) -> bool
pub fn is_configuration_error(&self) -> bool
Trait Implementations§
Source§impl Clone for ResultCode
impl Clone for ResultCode
Source§fn clone(&self) -> ResultCode
fn clone(&self) -> ResultCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResultCode
Source§impl Debug for ResultCode
impl Debug for ResultCode
Source§impl Display for ResultCode
impl Display for ResultCode
impl Eq for ResultCode
Source§impl PartialEq for ResultCode
impl PartialEq for ResultCode
impl StructuralPartialEq for ResultCode
Auto Trait Implementations§
impl Forget for ResultCode
impl Freeze for ResultCode
impl Move for ResultCode
impl RefUnwindSafe for ResultCode
impl Send for ResultCode
impl Sync for ResultCode
impl Unpin for ResultCode
impl UnsafeUnpin for ResultCode
impl UnwindSafe for ResultCode
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