pub enum BlockChainContextResponse {
Ok,
RxVms(HashMap<usize, Arc<RandomXVm>>),
BatchDifficulties(Vec<u128>),
HardForkInfos(Vec<HardForkInfo>),
FeeEstimate(FeeEstimate),
RctOutputDistribution(OutputDistributionData),
CalculatePow([u8; 32]),
AltChains(Vec<ChainInfo>),
AltChainContextCache(Box<AltChainContextCache>),
AltChainDifficultyCache(DifficultyCache),
AltChainRxVM(Arc<RandomXVm>),
AltChainWeightCache(BlockWeightsCache),
}Variants§
Ok
A generic Ok response.
Response to:
RxVms(HashMap<usize, Arc<RandomXVm>>)
Response to BlockChainContextRequest::CurrentRxVms
A map of seed height to RandomX VMs.
BatchDifficulties(Vec<u128>)
A list of difficulties.
HardForkInfos(Vec<HardForkInfo>)
Response to BlockChainContextRequest::HardForkInfos
FeeEstimate(FeeEstimate)
Response to BlockChainContextRequest::FeeEstimate
RctOutputDistribution(OutputDistributionData)
Response to BlockChainContextRequest::RctOutputDistribution
CalculatePow([u8; 32])
Response to BlockChainContextRequest::CalculatePow
AltChains(Vec<ChainInfo>)
Response to BlockChainContextRequest::AltChains
If the inner Vec::is_empty, there were no alternate chains.
AltChainContextCache(Box<AltChainContextCache>)
An alt chain context cache.
AltChainDifficultyCache(DifficultyCache)
A difficulty cache for an alt chain.
AltChainRxVM(Arc<RandomXVm>)
A randomX VM for an alt chain.
AltChainWeightCache(BlockWeightsCache)
A weight cache for an alt chain
Auto Trait Implementations§
impl Freeze for BlockChainContextResponse
impl RefUnwindSafe for BlockChainContextResponse
impl Send for BlockChainContextResponse
impl Sync for BlockChainContextResponse
impl Unpin for BlockChainContextResponse
impl UnsafeUnpin for BlockChainContextResponse
impl UnwindSafe for BlockChainContextResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 160 bytes
Size for each variant:
Ok: 0 bytesRxVms: 56 bytesBatchDifficulties: 32 bytesHardForkInfos: 32 bytesFeeEstimate: 48 bytesRctOutputDistribution: 56 bytesCalculatePow: 40 bytesAltChains: 32 bytesAltChainContextCache: 16 bytesAltChainDifficultyCache: 160 bytesAltChainRxVM: 16 bytesAltChainWeightCache: 152 bytes