pub enum SecretInput {
Redirected,
Hidden(HiddenInput),
Visible(Error),
}Expand description
How to read a secret from stdin without changing how redirected input is handled.
Variants§
Redirected
Read silently, without a terminal prompt.
Hidden(HiddenInput)
Echo is disabled until the guard drops.
Visible(Error)
Echo could not be disabled and the platform permits a visible read after warning.
Auto Trait Implementations§
impl !RefUnwindSafe for SecretInput
impl !UnwindSafe for SecretInput
impl Forget for SecretInput
impl Freeze for SecretInput
impl Move for SecretInput
impl Send for SecretInputwhere
Repr: Send,
impl Sync for SecretInputwhere
Repr: Sync,
impl Unpin for SecretInput
impl UnsafeUnpin for SecretInput
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