KeyType

Trait KeyType 

Source
pub trait KeyType {
    const KEY_TYPE: &'static str;

    // Provided method
    fn key_type(&self) -> String { ... }
}

Required Associated Constants§

Source

const KEY_TYPE: &'static str

Provided Methods§

Source

fn key_type(&self) -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl KeyType for DssPrivateKey

Source§

const KEY_TYPE: &'static str = "ssh-dss"

Source§

impl KeyType for EcDsaPrivateKey

Source§

const KEY_TYPE: &'static str = "ecdsa-sha2"

Source§

impl KeyType for Ed25519PrivateKey

Source§

const KEY_TYPE: &'static str = "ssh-ed25519"

Source§

impl KeyType for RsaPrivateKey

Source§

const KEY_TYPE: &'static str = "ssh-rsa"

Source§

impl KeyType for DssPublicKey

Source§

const KEY_TYPE: &'static str = DssPrivateKey::KEY_TYPE

Source§

impl KeyType for EcDsaPublicKey

Source§

const KEY_TYPE: &'static str = EcDsaPrivateKey::KEY_TYPE

Source§

impl KeyType for Ed25519PublicKey

Source§

const KEY_TYPE: &'static str = Ed25519PrivateKey::KEY_TYPE

Source§

impl KeyType for RsaPublicKey

Source§

const KEY_TYPE: &'static str = RsaPrivateKey::KEY_TYPE