common_meta::key

Trait MetadataKey

source
pub trait MetadataKey<'a, T> {
    // Required methods
    fn to_bytes(&self) -> Vec<u8> ;
    fn from_bytes(bytes: &'a [u8]) -> Result<T>;
}
Expand description

The key of metadata.

Required Methods§

source

fn to_bytes(&self) -> Vec<u8>

source

fn from_bytes(bytes: &'a [u8]) -> Result<T>

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§