fuel_compression

Trait DecompressibleBy

source
pub trait DecompressibleBy<Ctx>: Compressible
where 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§

source

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.

Implementations on Foreign Types§

source§

impl<Ctx> DecompressibleBy<Ctx> for u8
where Ctx: ContextError,

source§

async fn decompress_with( c: Self::Compressed, _: &Ctx, ) -> Result<Self, Ctx::Error>

source§

impl<Ctx> DecompressibleBy<Ctx> for u16
where Ctx: ContextError,

source§

async fn decompress_with( c: Self::Compressed, _: &Ctx, ) -> Result<Self, Ctx::Error>

source§

impl<Ctx> DecompressibleBy<Ctx> for u32
where Ctx: ContextError,

source§

async fn decompress_with( c: Self::Compressed, _: &Ctx, ) -> Result<Self, Ctx::Error>

source§

impl<Ctx> DecompressibleBy<Ctx> for u64
where Ctx: ContextError,

source§

async fn decompress_with( c: Self::Compressed, _: &Ctx, ) -> Result<Self, Ctx::Error>

source§

impl<Ctx> DecompressibleBy<Ctx> for u128
where Ctx: ContextError,

source§

async fn decompress_with( c: Self::Compressed, _: &Ctx, ) -> Result<Self, Ctx::Error>

source§

impl<Ctx> DecompressibleBy<Ctx> for BlobId
where Ctx: ContextError,

source§

async fn decompress_with( c: Self::Compressed, _: &Ctx, ) -> Result<Self, Ctx::Error>

source§

impl<Ctx> DecompressibleBy<Ctx> for Bytes32
where Ctx: ContextError,

source§

async fn decompress_with( c: Self::Compressed, _: &Ctx, ) -> Result<Self, Ctx::Error>

source§

impl<Ctx> DecompressibleBy<Ctx> for Nonce
where Ctx: ContextError,

source§

async fn decompress_with( c: Self::Compressed, _: &Ctx, ) -> Result<Self, Ctx::Error>

source§

impl<Ctx> DecompressibleBy<Ctx> for Salt
where Ctx: ContextError,

source§

async fn decompress_with( c: Self::Compressed, _: &Ctx, ) -> Result<Self, Ctx::Error>

source§

impl<Ctx> DecompressibleBy<Ctx> for BlockHeight
where Ctx: ContextError,

source§

async fn decompress_with( c: Self::Compressed, _: &Ctx, ) -> Result<Self, Ctx::Error>

source§

impl<T, Ctx> DecompressibleBy<Ctx> for Vec<T>
where T: DecompressibleBy<Ctx>, Ctx: ContextError,

source§

async fn decompress_with( c: Self::Compressed, ctx: &Ctx, ) -> Result<Self, Ctx::Error>

source§

impl<const S: usize, T, Ctx> DecompressibleBy<Ctx> for [T; S]
where T: DecompressibleBy<Ctx>, Ctx: ContextError,

source§

async fn decompress_with( c: Self::Compressed, ctx: &Ctx, ) -> Result<Self, Ctx::Error>

Implementors§