Skip to main content

Passphrase

Trait Passphrase 

Source
pub trait Passphrase:
    Clone
    + Send
    + Sync
    + 'static {
    // Required method
    fn ask(&self, description: &str) -> Option<String>;
}
Expand description

A passphrase source for an encrypted SSH key file.

Required Methods§

Source

fn ask(&self, description: &str) -> Option<String>

Ask for the passphrase of the key description names; None gives up.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§