pub struct Terminal<'a, W: Write> { /* private fields */ }Expand description
The real terminal.
Reads lines from stdin and secrets through rpassword, which turns echo off
for the duration of the read. A pasted key would otherwise sit in the
terminal’s scrollback, which is the one place drep takes care not to put a
credential anywhere else - LlmConfig, LlmClient and AuthStore all
hand-write Debug for the same reason.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, W> !UnwindSafe for Terminal<'a, W>
impl<'a, W> Freeze for Terminal<'a, W>
impl<'a, W> RefUnwindSafe for Terminal<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for Terminal<'a, W>where
W: Send,
impl<'a, W> Sync for Terminal<'a, W>where
W: Sync,
impl<'a, W> Unpin for Terminal<'a, W>
impl<'a, W> UnsafeUnpin for Terminal<'a, W>
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