Trait Decompress
pub trait Decompress:
Sized
+ Send
+ Sync
+ Debug {
// Required method
fn decompress(value: &[u8]) -> Result<Self, DecompressError>;
// Provided method
fn decompress_owned(value: Vec<u8>) -> Result<Self, DecompressError> { ... }
}Available on crate feature
provider only.Expand description
Trait that will transform the data to be read from the DB.
Required Methods§
fn decompress(value: &[u8]) -> Result<Self, DecompressError>
fn decompress(value: &[u8]) -> Result<Self, DecompressError>
Decompresses data coming from the database.
Provided Methods§
fn decompress_owned(value: Vec<u8>) -> Result<Self, DecompressError>
fn decompress_owned(value: Vec<u8>) -> Result<Self, DecompressError>
Decompresses owned data coming from the database.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".