Enum pam_client::ErrorCode[][src]

#[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,
}

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);

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.