pub enum PamError {
StartFailed,
TryAuthFailed,
InternalError,
}Expand description
Where an attempt that ended in PamResult::Error went wrong.
Variants§
StartFailed
It never began: libpam refused to start the service, a service or
user name held a NUL, or the shell’s own user isn’t in
/etc/passwd.
TryAuthFailed
PAM couldn’t try the answers, which isn’t the user failing to
authenticate: pam_authenticate returned an error but
PAM_AUTH_ERR, which is Failure, and
PAM_CONV_ERR, such as PAM_USER_UNKNOWN, PAM_AUTHINFO_UNAVAIL
or PAM_MAXTRIES.
InternalError
The shell’s side failed: it refused PAM an answer, as one with a NUL, or the attempt ended without a result.
Trait Implementations§
impl Copy for PamError
impl Eq for PamError
impl StructuralPartialEq for PamError
Auto Trait Implementations§
impl Forget for PamError
impl Freeze for PamError
impl Move for PamError
impl RefUnwindSafe for PamError
impl Send for PamError
impl Sync for PamError
impl Unpin for PamError
impl UnsafeUnpin for PamError
impl UnwindSafe for PamError
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