pub struct AuthPrompt {
pub kind: PromptKind,
pub title: String,
pub instructions: String,
pub prompt: String,
pub echo: bool,
/* private fields */
}Expand description
A question the SSH login needs the user to answer. Answer it with
AuthPrompt::answer; dropping it unanswered cancels the login.
Fields§
§kind: PromptKind§title: StringA heading, e.g. “SSH login to bbs.example.com”.
instructions: StringExtra text from the server, or why the question is asked again.
prompt: String§echo: boolWhether the answer may be shown as it is typed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AuthPrompt
impl !UnwindSafe for AuthPrompt
impl Freeze for AuthPrompt
impl Send for AuthPrompt
impl Sync for AuthPrompt
impl Unpin for AuthPrompt
impl UnsafeUnpin for AuthPrompt
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