fuel_compression

Trait Decompress

source
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§

source

async fn decompress(self, ctx: &Ctx) -> Result<Decompressed, Ctx::Error>

Perform decompression, returning the original data.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, Ctx, Decompressed> Decompress<Decompressed, Ctx> for T
where Ctx: ContextError, Decompressed: DecompressibleBy<Ctx, Compressed = Self>,