pub enum PamState {
Idle,
Asking {
message: String,
visible: bool,
},
Busy,
Done(PamResult),
}Expand description
Where an authentication is, from Pam::state.
Variants§
Idle
Nothing started, or the last attempt was aborted.
Asking
PAM asks message, such as Password: , and waits for
Pam::respond.
Fields
Busy
PAM is working, as between an answer and the next question.
Done(PamResult)
The attempt ended.
Trait Implementations§
impl StructuralPartialEq for PamState
Auto Trait Implementations§
impl Forget for PamState
impl Freeze for PamState
impl Move for PamState
impl RefUnwindSafe for PamState
impl Send for PamState
impl Sync for PamState
impl Unpin for PamState
impl UnsafeUnpin for PamState
impl UnwindSafe for PamState
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