pub enum Prompt {
Allowed,
Never,
}Expand description
Whether a missing password may be asked for on the terminal.
Prompting suits a command a person is watching. A daemon has nobody to ask:
under systemd there is no controlling terminal so the prompt errors, but run
from a shell it blocks on stdin indefinitely — so an unattended caller asks
for Prompt::Never and gets an error it can report instead.
Variants§
Trait Implementations§
impl Copy for Prompt
impl Eq for Prompt
impl StructuralPartialEq for Prompt
Auto Trait Implementations§
impl Freeze for Prompt
impl RefUnwindSafe for Prompt
impl Send for Prompt
impl Sync for Prompt
impl Unpin for Prompt
impl UnsafeUnpin for Prompt
impl UnwindSafe for Prompt
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