KeyPart

Trait KeyPart 

Source
pub trait KeyPart {
    // Required methods
    fn new() -> Self;
    fn get_name(&self) -> &'static str;
    fn get_bytes(&self) -> &'static [u8] ;
}

Required Methods§

Source

fn new() -> Self

Source

fn get_name(&self) -> &'static str

Returns key part name

Source

fn get_bytes(&self) -> &'static [u8]

Returns key part bytes

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§