Skip to main content

KeyEncoder

Trait KeyEncoder 

Source
pub trait KeyEncoder {
    // Required method
    fn encode_key(&self) -> Bytes;
}
Expand description

Encodes a typed key into FoundationDB tuple bytes.

Required Methods§

Source

fn encode_key(&self) -> Bytes

Returns the encoded key.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§