pub enum SshAuth {
Agent,
Key {
path: PathBuf,
passphrase: Option<String>,
},
}Expand description
Authentication method for an SSH session.
Variants§
Agent
Walk SSH_AUTH_SOCK identities. The default.
Key
Read a private key from path. Passphrase is supplied at connect
time; the crate never persists it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SshAuth
impl RefUnwindSafe for SshAuth
impl Send for SshAuth
impl Sync for SshAuth
impl Unpin for SshAuth
impl UnsafeUnpin for SshAuth
impl UnwindSafe for SshAuth
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