#[repr(i32)]pub enum Flags {
EchoOff = 0,
EchoOn = 1,
RequireTty = 2,
ForceLower = 4,
ForceUpper = 8,
SevenBit = 16,
StdIn = 32,
}
Expand description
Flags argument able to bitwise OR zero or more flags
Variants§
EchoOff = 0
Turn off echo (default behavior)
EchoOn = 1
Leave echo on
RequireTty = 2
Fail if there is no TTY
ForceLower = 4
Force input to lower case
ForceUpper = 8
Force input to upper case
SevenBit = 16
Strip the high bit from input
StdIn = 32
Read passphrase from stdin; ignore prompt
Trait Implementations§
impl Copy for Flags
impl Eq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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