#[non_exhaustive]pub enum ResultCode {
Show 29 variants
Success,
OperationsError,
ProtocolError,
TimeLimitExceeded,
SizeLimitExceeded,
CompareFalse,
CompareTrue,
AuthMethodNotSupported,
StrongerAuthRequired,
Referral,
AdminLimitExceeded,
SaslBindInProgress,
NoSuchAttribute,
UndefinedAttributeType,
InappropriateMatching,
ConstraintViolation,
AttributeOrValueExists,
InvalidAttributeSyntax,
NoSuchObject,
InvalidDnSyntax,
InvalidCredentials,
InsufficientAccessRights,
Busy,
Unavailable,
UnwillingToPerform,
NotAllowedOnNonLeaf,
EntryAlreadyExists,
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
SaslBindInProgress
NoSuchAttribute
UndefinedAttributeType
InappropriateMatching
ConstraintViolation
AttributeOrValueExists
InvalidAttributeSyntax
NoSuchObject
InvalidDnSyntax
InvalidCredentials
InsufficientAccessRights
Busy
UnwillingToPerform
NotAllowedOnNonLeaf
EntryAlreadyExists
Other
Unknown(i32)
Implementations§
Source§impl ResultCode
impl ResultCode
pub fn from_i64(code: i64) -> 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 · 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 ResultCode
impl Debug for ResultCode
Source§impl Display for ResultCode
impl Display for ResultCode
Source§impl PartialEq for ResultCode
impl PartialEq for ResultCode
impl Copy for ResultCode
impl Eq for ResultCode
impl StructuralPartialEq for ResultCode
Auto Trait Implementations§
impl Freeze 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