pub enum KeyPushPrompt {
Trust {
alias: String,
key_path: String,
},
Password {
alias: String,
key_path: String,
},
SecurityKeyPin {
alias: String,
key_path: String,
security_key: String,
refused: Option<RefusalReason>,
},
}Expand description
A question the finished run left for the user, drained one at a time
once no run is in flight. Each entry carries the key its run was
pushing: a later run overwrites KeyPushState::key_path, so a host
still waiting here would otherwise be answered for the wrong key.
Variants§
Trust
Strict checking refused a host not in known_hosts yet.
Password
ssh ended with Permission denied and the server takes a password.
SecurityKeyPin
A security key that signs the login wants a PIN. security_key is
that key file; refused says why it turned the last PIN down.
Implementations§
Trait Implementations§
Source§impl Clone for KeyPushPrompt
impl Clone for KeyPushPrompt
Source§impl Debug for KeyPushPrompt
impl Debug for KeyPushPrompt
impl Eq for KeyPushPrompt
Source§impl PartialEq for KeyPushPrompt
impl PartialEq for KeyPushPrompt
impl StructuralPartialEq for KeyPushPrompt
Auto Trait Implementations§
impl Freeze for KeyPushPrompt
impl RefUnwindSafe for KeyPushPrompt
impl Send for KeyPushPrompt
impl Sync for KeyPushPrompt
impl Unpin for KeyPushPrompt
impl UnsafeUnpin for KeyPushPrompt
impl UnwindSafe for KeyPushPrompt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more