pub trait Decompress:
    Sized
    + Send
    + Sync
    + Debug {
    // Required method
    fn decompress(value: &[u8]) -> Result<Self, DatabaseError>;
    // Provided method
    fn decompress_owned(value: Vec<u8>) -> Result<Self, DatabaseError> { ... }
}Available on crate feature 
provider only.Expand description
Trait that will transform the data to be read from the DB.
Required Methods§
Sourcefn decompress(value: &[u8]) -> Result<Self, DatabaseError>
 
fn decompress(value: &[u8]) -> Result<Self, DatabaseError>
Decompresses data coming from the database.
Provided Methods§
Sourcefn decompress_owned(value: Vec<u8>) -> Result<Self, DatabaseError>
 
fn decompress_owned(value: Vec<u8>) -> Result<Self, DatabaseError>
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", so this trait is not object safe.