Enum thrussh::key::Algorithm [] [src]

pub enum Algorithm {
    // some variants omitted
}

Methods

impl Algorithm
[src]

fn public_key(&self) -> PublicKey

Copy the public key of this algorithm.

fn generate_keypair(t: Name) -> Option<Self>

Generate a key pair.

Trait Implementations

impl Clone for Algorithm
[src]

fn clone(&self) -> Algorithm

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Algorithm
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.