Skip to main content

SshKeyStorage

Trait SshKeyStorage 

Source
pub trait SshKeyStorage: Send + Sync {
    // Required method
    fn resolve(&self, host: &str, username: &str) -> Option<PathBuf>;
}
Expand description

This trait must be implemented in order to use ssh keys for authentication for sftp/scp.

Required Methods§

Source

fn resolve(&self, host: &str, username: &str) -> Option<PathBuf>

Return RSA key path from host and username

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§