Skip to main content

Identified

Trait Identified 

Source
pub trait Identified {
    // Required method
    fn identifier(&self) -> &str;
}
Expand description

任何可注册进注册表的能力都带一个稳定标识(如 aes-256-gcm)。

Required Methods§

Source

fn identifier(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Identified + ?Sized> Identified for Box<T>

Source§

fn identifier(&self) -> &str

Implementors§