Enum ssh_jumper_model::AuthMethod [−][src]
pub enum AuthMethod<'auth> {
KeyPair {
private_key: Cow<'auth, Path>,
passphrase: Option<Cow<'auth, str>>,
},
Password {
password: Cow<'auth, str>,
},
}
Expand description
Authentication method and details.
Variants
Use a private/public key pair for authentication.
Fields of KeyPair
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'auth> RefUnwindSafe for AuthMethod<'auth>
impl<'auth> Send for AuthMethod<'auth>
impl<'auth> Sync for AuthMethod<'auth>
impl<'auth> Unpin for AuthMethod<'auth>
impl<'auth> UnwindSafe for AuthMethod<'auth>
Blanket Implementations
Mutably borrows from an owned value. Read more