#[repr(isize)]
pub enum ErrorCode {
Show 28 variants OPEN_ERR, SYMBOL_ERR, SERVICE_ERR, SYSTEM_ERR, BUF_ERR, PERM_DENIED, AUTH_ERR, CRED_INSUFFICIENT, AUTHINFO_UNAVAIL, USER_UNKNOWN, MAXTRIES, NEW_AUTHTOK_REQD, ACCT_EXPIRED, SESSION_ERR, CRED_UNAVAIL, CRED_EXPIRED, CRED_ERR, CONV_ERR, AUTHTOK_ERR, AUTHTOK_RECOVERY_ERR, AUTHTOK_LOCK_BUSY, AUTHTOK_DISABLE_AGING, ABORT, AUTHTOK_EXPIRED, MODULE_UNKNOWN, BAD_ITEM, CONV_AGAIN, INCOMPLETE,
}
Expand description

PAM error codes

Variants

OPEN_ERR

SYMBOL_ERR

SERVICE_ERR

SYSTEM_ERR

BUF_ERR

PERM_DENIED

AUTH_ERR

CRED_INSUFFICIENT

AUTHINFO_UNAVAIL

USER_UNKNOWN

MAXTRIES

NEW_AUTHTOK_REQD

ACCT_EXPIRED

SESSION_ERR

CRED_UNAVAIL

CRED_EXPIRED

CRED_ERR

CONV_ERR

AUTHTOK_ERR

AUTHTOK_RECOVERY_ERR

AUTHTOK_LOCK_BUSY

AUTHTOK_DISABLE_AGING

ABORT

AUTHTOK_EXPIRED

MODULE_UNKNOWN

BAD_ITEM

CONV_AGAIN

INCOMPLETE

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Wrapping of a ErrorCode in a Error without a PAM context.

This is used internally to construct Error instances when no PAM context is available. These instances won’t have a message string, only a code.

Examples:


let error = Error::from(ErrorCode::ABORT);
println!("{:?}", error);

let error: Error = ErrorCode::ABORT.into();
println!("{:?}", error);

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.