pub enum AuthState {
Waiting,
Asking {
message: String,
visible: bool,
},
Busy,
Failed {
message: String,
},
}Expand description
Where a request’s conversation is.
Variants§
Waiting
polkit’s helper is starting, or has only told the user something.
Asking
PAM asks message, such as Password: , for
PolkitAgent::respond. visible is whether the answer may show
as it is typed.
Busy
The answer is being checked.
Failed
The answer was wrong. PolkitAgent::respond tries again; after
the third failure polkit is told, and the request goes.
Trait Implementations§
impl StructuralPartialEq for AuthState
Auto Trait Implementations§
impl Forget for AuthState
impl Freeze for AuthState
impl Move for AuthState
impl RefUnwindSafe for AuthState
impl Send for AuthState
impl Sync for AuthState
impl Unpin for AuthState
impl UnsafeUnpin for AuthState
impl UnwindSafe for AuthState
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