Struct distant_ssh2::Ssh2AuthEvent
source · [−]pub struct Ssh2AuthEvent {
pub username: String,
pub instructions: String,
pub prompts: Vec<Ssh2AuthPrompt>,
}Expand description
Represents an authentication request that needs to be handled before an ssh session can be established
Fields
username: StringRepresents the name of the user to be authenticated. This may be empty!
instructions: StringInformational text to be displayed to the user prior to the prompt
prompts: Vec<Ssh2AuthPrompt>Prompts to be conveyed to the user, each representing a single answer needed
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ssh2AuthEvent
impl Send for Ssh2AuthEvent
impl Sync for Ssh2AuthEvent
impl Unpin for Ssh2AuthEvent
impl UnwindSafe for Ssh2AuthEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more