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