pub trait DecompressibleBy<Ctx>: Compressiblewhere
Ctx: ContextError,
Self: Sized,{
// Required method
async fn decompress_with(
c: Self::Compressed,
ctx: &Ctx,
) -> Result<Self, Ctx::Error>;
}
Expand description
This type can be decompressed using CompressionContext
.
Required Methods§
sourceasync fn decompress_with(
c: Self::Compressed,
ctx: &Ctx,
) -> Result<Self, Ctx::Error>
async fn decompress_with( c: Self::Compressed, ctx: &Ctx, ) -> Result<Self, Ctx::Error>
Perform decompression, returning the original data. The context can be used to resolve references.
Object Safety§
This trait is not object safe.