Trait KeyType

Source
pub trait KeyType {
    type Description: KeyDescription + ?Sized;
    type Payload: KeyPayload + ?Sized;

    // Required method
    fn name() -> &'static str;
}
Expand description

A trait for representing a type of key in the Linux keyring subsystem.

Required Associated Types§

Source

type Description: KeyDescription + ?Sized

The type for describing the key.

Source

type Payload: KeyPayload + ?Sized

The type for representing a payload for the key.

Required Methods§

Source

fn name() -> &'static str

The name of the keytype.

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§