pub enum ClientCredential {
None,
Password(String),
PublicKey(Box<dyn HostKey>),
KeyboardInteractive(Box<dyn KeyboardInteractiveResponder>),
}Expand description
A credential the client offers in turn.
Variants§
None
none — used as a probe to learn allowed methods.
Password(String)
Plaintext password.
PublicKey(Box<dyn HostKey>)
Publickey — signs the request with the private side.
KeyboardInteractive(Box<dyn KeyboardInteractiveResponder>)
Keyboard-interactive — defers prompt answering to a responder.
Auto Trait Implementations§
impl Freeze for ClientCredential
impl !RefUnwindSafe for ClientCredential
impl !Send for ClientCredential
impl !Sync for ClientCredential
impl Unpin for ClientCredential
impl UnsafeUnpin for ClientCredential
impl !UnwindSafe for ClientCredential
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