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(i64),
}Expand description
Every result code RFC 4511 names, plus whatever else a directory sends.
This is an enum rather than a bare integer because the difference between 32 and 49 is the difference between “no such user” and “wrong password”, and a caller that has to remember which number is which will eventually get it wrong in the direction that logs somebody in.
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(i64)
A code this client does not know. Directories add their own; refusing to carry the number would lose the only clue in the message.
Implementations§
Trait Implementations§
Source§impl Clone for ResultCode
impl Clone for ResultCode
impl 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 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