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§
Sourcetype Description: KeyDescription + ?Sized
type Description: KeyDescription + ?Sized
The type for describing the key.
Sourcetype Payload: KeyPayload + ?Sized
type Payload: KeyPayload + ?Sized
The type for representing a payload for the key.
Required Methods§
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.