Enum pam_client::ErrorCode
source · [−]#[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
sourceimpl From<ErrorCode> for Error
impl From<ErrorCode> for Error
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);
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralEq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more