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
Implementations
Trait Implementations
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);Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
Mutably borrows from an owned value. Read more