Trait keyutils::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.

Implementors§