pub trait Decompress<Decompressed, Ctx>where
Ctx: ContextError,{
// Required method
async fn decompress(self, ctx: &Ctx) -> Result<Decompressed, Ctx::Error>;
}
Expand description
The trait allows for decompression of a compressed type.
This trait is syntax sugar for DecompressibleBy
with the compressed type as the
receiver.
Required Methods§
sourceasync fn decompress(self, ctx: &Ctx) -> Result<Decompressed, Ctx::Error>
async fn decompress(self, ctx: &Ctx) -> Result<Decompressed, Ctx::Error>
Perform decompression, returning the original data.
Object Safety§
This trait is not object safe.