pub trait KeyEncoder {
// Required method
fn encode_key(&self) -> Bytes;
}Expand description
Encodes a typed key into FoundationDB tuple bytes.
Required Methods§
Sourcefn encode_key(&self) -> Bytes
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".