#[repr(isize)]pub enum ErrorCode {
Show 28 variants
OPEN_ERR = 1,
SYMBOL_ERR = 2,
SERVICE_ERR = 3,
SYSTEM_ERR = 4,
BUF_ERR = 5,
PERM_DENIED = 6,
AUTH_ERR = 7,
CRED_INSUFFICIENT = 8,
AUTHINFO_UNAVAIL = 9,
USER_UNKNOWN = 10,
MAXTRIES = 11,
NEW_AUTHTOK_REQD = 12,
ACCT_EXPIRED = 13,
SESSION_ERR = 14,
CRED_UNAVAIL = 15,
CRED_EXPIRED = 16,
CRED_ERR = 17,
CONV_ERR = 19,
AUTHTOK_ERR = 20,
AUTHTOK_RECOVERY_ERR = 21,
AUTHTOK_LOCK_BUSY = 22,
AUTHTOK_DISABLE_AGING = 23,
ABORT = 26,
AUTHTOK_EXPIRED = 27,
MODULE_UNKNOWN = 28,
BAD_ITEM = 29,
CONV_AGAIN = 30,
INCOMPLETE = 31,
}
Expand description
PAM error codes
Variants§
OPEN_ERR = 1
SYMBOL_ERR = 2
SERVICE_ERR = 3
SYSTEM_ERR = 4
BUF_ERR = 5
PERM_DENIED = 6
AUTH_ERR = 7
CRED_INSUFFICIENT = 8
AUTHINFO_UNAVAIL = 9
USER_UNKNOWN = 10
MAXTRIES = 11
NEW_AUTHTOK_REQD = 12
ACCT_EXPIRED = 13
SESSION_ERR = 14
CRED_UNAVAIL = 15
CRED_EXPIRED = 16
CRED_ERR = 17
CONV_ERR = 19
AUTHTOK_ERR = 20
AUTHTOK_RECOVERY_ERR = 21
AUTHTOK_LOCK_BUSY = 22
AUTHTOK_DISABLE_AGING = 23
ABORT = 26
AUTHTOK_EXPIRED = 27
MODULE_UNKNOWN = 28
BAD_ITEM = 29
CONV_AGAIN = 30
INCOMPLETE = 31
Implementations§
Trait Implementations§
Source§impl From<ErrorCode> for Error
impl From<ErrorCode> for Error
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 StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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