pub struct DecompressCtx<D> {
pub config: Config,
pub timestamp: Tai64,
pub db: D,
}
Fields§
§config: Config
§timestamp: Tai64
Timestamp of the block being decompressed
db: D
Trait Implementations§
source§impl<D> ContextError for DecompressCtx<D>
impl<D> ContextError for DecompressCtx<D>
source§impl<D> DecompressibleBy<DecompressCtx<D>> for Addresswhere
D: TemporalRegistry<Address>,
impl<D> DecompressibleBy<DecompressCtx<D>> for Addresswhere
D: TemporalRegistry<Address>,
source§async fn decompress_with(
key: RegistryKey,
ctx: &DecompressCtx<D>,
) -> Result<Self>
async fn decompress_with( key: RegistryKey, ctx: &DecompressCtx<D>, ) -> Result<Self>
Perform decompression, returning the original data.
The context can be used to resolve references.
source§impl<D> DecompressibleBy<DecompressCtx<D>> for AssetIdwhere
D: TemporalRegistry<AssetId>,
impl<D> DecompressibleBy<DecompressCtx<D>> for AssetIdwhere
D: TemporalRegistry<AssetId>,
source§async fn decompress_with(
key: RegistryKey,
ctx: &DecompressCtx<D>,
) -> Result<Self>
async fn decompress_with( key: RegistryKey, ctx: &DecompressCtx<D>, ) -> Result<Self>
Perform decompression, returning the original data.
The context can be used to resolve references.
source§impl<D, Specification> DecompressibleBy<DecompressCtx<D>> for Coin<Specification>where
D: DecompressDb,
Specification: CoinSpecification,
Specification::Predicate: DecompressibleBy<DecompressCtx<D>>,
Specification::PredicateData: DecompressibleBy<DecompressCtx<D>>,
Specification::PredicateGasUsed: DecompressibleBy<DecompressCtx<D>>,
Specification::Witness: DecompressibleBy<DecompressCtx<D>>,
impl<D, Specification> DecompressibleBy<DecompressCtx<D>> for Coin<Specification>where
D: DecompressDb,
Specification: CoinSpecification,
Specification::Predicate: DecompressibleBy<DecompressCtx<D>>,
Specification::PredicateData: DecompressibleBy<DecompressCtx<D>>,
Specification::PredicateGasUsed: DecompressibleBy<DecompressCtx<D>>,
Specification::Witness: DecompressibleBy<DecompressCtx<D>>,
source§async fn decompress_with(
c: <Coin<Specification> as Compressible>::Compressed,
ctx: &DecompressCtx<D>,
) -> Result<Coin<Specification>>
async fn decompress_with( c: <Coin<Specification> as Compressible>::Compressed, ctx: &DecompressCtx<D>, ) -> Result<Coin<Specification>>
Perform decompression, returning the original data.
The context can be used to resolve references.
source§impl<D> DecompressibleBy<DecompressCtx<D>> for ContractIdwhere
D: TemporalRegistry<ContractId>,
impl<D> DecompressibleBy<DecompressCtx<D>> for ContractIdwhere
D: TemporalRegistry<ContractId>,
source§async fn decompress_with(
key: RegistryKey,
ctx: &DecompressCtx<D>,
) -> Result<Self>
async fn decompress_with( key: RegistryKey, ctx: &DecompressCtx<D>, ) -> Result<Self>
Perform decompression, returning the original data.
The context can be used to resolve references.
source§impl<D, Specification> DecompressibleBy<DecompressCtx<D>> for Message<Specification>where
D: DecompressDb,
Specification: MessageSpecification,
Specification::Data: DecompressibleBy<DecompressCtx<D>> + Default,
Specification::Predicate: DecompressibleBy<DecompressCtx<D>>,
Specification::PredicateData: DecompressibleBy<DecompressCtx<D>>,
Specification::PredicateGasUsed: DecompressibleBy<DecompressCtx<D>>,
Specification::Witness: DecompressibleBy<DecompressCtx<D>>,
impl<D, Specification> DecompressibleBy<DecompressCtx<D>> for Message<Specification>where
D: DecompressDb,
Specification: MessageSpecification,
Specification::Data: DecompressibleBy<DecompressCtx<D>> + Default,
Specification::Predicate: DecompressibleBy<DecompressCtx<D>>,
Specification::PredicateData: DecompressibleBy<DecompressCtx<D>>,
Specification::PredicateGasUsed: DecompressibleBy<DecompressCtx<D>>,
Specification::Witness: DecompressibleBy<DecompressCtx<D>>,
source§async fn decompress_with(
c: <Message<Specification> as Compressible>::Compressed,
ctx: &DecompressCtx<D>,
) -> Result<Message<Specification>>
async fn decompress_with( c: <Message<Specification> as Compressible>::Compressed, ctx: &DecompressCtx<D>, ) -> Result<Message<Specification>>
Perform decompression, returning the original data.
The context can be used to resolve references.
source§impl<D> DecompressibleBy<DecompressCtx<D>> for Mintwhere
D: DecompressDb,
impl<D> DecompressibleBy<DecompressCtx<D>> for Mintwhere
D: DecompressDb,
source§async fn decompress_with(
c: Self::Compressed,
ctx: &DecompressCtx<D>,
) -> Result<Self>
async fn decompress_with( c: Self::Compressed, ctx: &DecompressCtx<D>, ) -> Result<Self>
Perform decompression, returning the original data.
The context can be used to resolve references.
source§impl<D> DecompressibleBy<DecompressCtx<D>> for PredicateCodewhere
D: TemporalRegistry<PredicateCode>,
impl<D> DecompressibleBy<DecompressCtx<D>> for PredicateCodewhere
D: TemporalRegistry<PredicateCode>,
source§async fn decompress_with(
key: RegistryKey,
ctx: &DecompressCtx<D>,
) -> Result<Self>
async fn decompress_with( key: RegistryKey, ctx: &DecompressCtx<D>, ) -> Result<Self>
Perform decompression, returning the original data.
The context can be used to resolve references.
source§impl<D> DecompressibleBy<DecompressCtx<D>> for ScriptCodewhere
D: TemporalRegistry<ScriptCode>,
impl<D> DecompressibleBy<DecompressCtx<D>> for ScriptCodewhere
D: TemporalRegistry<ScriptCode>,
source§async fn decompress_with(
key: RegistryKey,
ctx: &DecompressCtx<D>,
) -> Result<Self>
async fn decompress_with( key: RegistryKey, ctx: &DecompressCtx<D>, ) -> Result<Self>
Perform decompression, returning the original data.
The context can be used to resolve references.
source§impl<D> DecompressibleBy<DecompressCtx<D>> for UtxoIdwhere
D: HistoryLookup,
impl<D> DecompressibleBy<DecompressCtx<D>> for UtxoIdwhere
D: HistoryLookup,
source§async fn decompress_with(
c: CompressedUtxoId,
ctx: &DecompressCtx<D>,
) -> Result<Self>
async fn decompress_with( c: CompressedUtxoId, ctx: &DecompressCtx<D>, ) -> Result<Self>
Perform decompression, returning the original data.
The context can be used to resolve references.
Auto Trait Implementations§
impl<D> Freeze for DecompressCtx<D>where
D: Freeze,
impl<D> RefUnwindSafe for DecompressCtx<D>where
D: RefUnwindSafe,
impl<D> Send for DecompressCtx<D>where
D: Send,
impl<D> Sync for DecompressCtx<D>where
D: Sync,
impl<D> Unpin for DecompressCtx<D>where
D: Unpin,
impl<D> UnwindSafe for DecompressCtx<D>where
D: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, Ctx, Decompressed> Decompress<Decompressed, Ctx> for Twhere
Ctx: ContextError,
Decompressed: DecompressibleBy<Ctx, Compressed = T>,
impl<T, Ctx, Decompressed> Decompress<Decompressed, Ctx> for Twhere
Ctx: ContextError,
Decompressed: DecompressibleBy<Ctx, Compressed = T>,
source§async fn decompress(
self,
ctx: &Ctx,
) -> Result<Decompressed, <Ctx as ContextError>::Error>
async fn decompress( self, ctx: &Ctx, ) -> Result<Decompressed, <Ctx as ContextError>::Error>
Perform decompression, returning the original data.
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more