Enum jormungandr::blockcfg::ConfigParam
source · pub enum ConfigParam {
Show 26 variants
Block0Date(Block0Date),
Discrimination(Discrimination),
ConsensusVersion(ConsensusType),
SlotsPerEpoch(u32),
SlotDuration(u8),
EpochStabilityDepth(u32),
ConsensusGenesisPraosActiveSlotsCoeff(Milli),
BlockContentMaxSize(u32),
AddBftLeader(BftLeaderId),
RemoveBftLeader(BftLeaderId),
LinearFee(LinearFee),
ProposalExpiration(u32),
KesUpdateSpeed(u32),
TreasuryAdd(Value),
TreasuryParams(TaxType),
RewardPot(Value),
RewardParams(RewardParams),
PerCertificateFees(PerCertificateFee),
FeesInTreasury(bool),
RewardLimitNone,
RewardLimitByAbsoluteStake(Ratio),
PoolRewardParticipationCapping((NonZeroU32, NonZeroU32)),
AddCommitteeId(CommitteeId),
RemoveCommitteeId(CommitteeId),
PerVoteCertificateFees(PerVoteCertificateFee),
TransactionMaxExpiryEpochs(u8),
}
Variants§
Block0Date(Block0Date)
Discrimination(Discrimination)
ConsensusVersion(ConsensusType)
SlotsPerEpoch(u32)
SlotDuration(u8)
EpochStabilityDepth(u32)
ConsensusGenesisPraosActiveSlotsCoeff(Milli)
BlockContentMaxSize(u32)
AddBftLeader(BftLeaderId)
RemoveBftLeader(BftLeaderId)
LinearFee(LinearFee)
ProposalExpiration(u32)
KesUpdateSpeed(u32)
TreasuryAdd(Value)
TreasuryParams(TaxType)
RewardPot(Value)
RewardParams(RewardParams)
PerCertificateFees(PerCertificateFee)
FeesInTreasury(bool)
RewardLimitNone
RewardLimitByAbsoluteStake(Ratio)
PoolRewardParticipationCapping((NonZeroU32, NonZeroU32))
AddCommitteeId(CommitteeId)
RemoveCommitteeId(CommitteeId)
PerVoteCertificateFees(PerVoteCertificateFee)
TransactionMaxExpiryEpochs(u8)
Trait Implementations§
source§impl Arbitrary for ConfigParam
impl Arbitrary for ConfigParam
source§impl Clone for ConfigParam
impl Clone for ConfigParam
source§fn clone(&self) -> ConfigParam
fn clone(&self) -> ConfigParam
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConfigParam
impl Debug for ConfigParam
source§impl DeserializeFromSlice for ConfigParam
impl DeserializeFromSlice for ConfigParam
source§impl<'a> From<&'a ConfigParam> for Tag
impl<'a> From<&'a ConfigParam> for Tag
source§fn from(config_param: &'a ConfigParam) -> Tag
fn from(config_param: &'a ConfigParam) -> Tag
Converts to this type from the input type.
source§impl From<ActiveSlotCoefficient> for ConfigParam
impl From<ActiveSlotCoefficient> for ConfigParam
source§fn from(active_slot_coefficient: ActiveSlotCoefficient) -> ConfigParam
fn from(active_slot_coefficient: ActiveSlotCoefficient) -> ConfigParam
Converts to this type from the input type.
source§impl From<ConfigParam> for ConfigParam
impl From<ConfigParam> for ConfigParam
source§fn from(config: ConfigParam) -> ConfigParam
fn from(config: ConfigParam) -> ConfigParam
Converts to this type from the input type.
source§impl From<ConsensusLeaderId> for ConfigParam
impl From<ConsensusLeaderId> for ConfigParam
source§fn from(consensus_leader_id: ConsensusLeaderId) -> ConfigParam
fn from(consensus_leader_id: ConsensusLeaderId) -> ConfigParam
Converts to this type from the input type.
source§impl From<FeesGoTo> for ConfigParam
impl From<FeesGoTo> for ConfigParam
source§fn from(fees_go_to: FeesGoTo) -> ConfigParam
fn from(fees_go_to: FeesGoTo) -> ConfigParam
Converts to this type from the input type.
source§impl From<KesUpdateSpeed> for ConfigParam
impl From<KesUpdateSpeed> for ConfigParam
source§fn from(kes_update_speed: KesUpdateSpeed) -> ConfigParam
fn from(kes_update_speed: KesUpdateSpeed) -> ConfigParam
Converts to this type from the input type.
source§impl From<NumberOfSlotsPerEpoch> for ConfigParam
impl From<NumberOfSlotsPerEpoch> for ConfigParam
source§fn from(number_of_slots_per_epoch: NumberOfSlotsPerEpoch) -> ConfigParam
fn from(number_of_slots_per_epoch: NumberOfSlotsPerEpoch) -> ConfigParam
Converts to this type from the input type.
source§impl From<SlotDuration> for ConfigParam
impl From<SlotDuration> for ConfigParam
source§fn from(slots_duration: SlotDuration) -> ConfigParam
fn from(slots_duration: SlotDuration) -> ConfigParam
Converts to this type from the input type.
source§impl PartialEq<ConfigParam> for ConfigParam
impl PartialEq<ConfigParam> for ConfigParam
source§fn eq(&self, other: &ConfigParam) -> bool
fn eq(&self, other: &ConfigParam) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ConfigParam
impl Serialize for ConfigParam
source§fn serialized_size(&self) -> usize
fn serialized_size(&self) -> usize
Default implementation, not efficient, not recommended to use it
fn serialize<W>(&self, codec: &mut Codec<W>) -> Result<(), WriteError>where W: Write,
source§fn serialize_as_vec(&self) -> Result<Vec<u8, Global>, WriteError>
fn serialize_as_vec(&self) -> Result<Vec<u8, Global>, WriteError>
Convenience method to serialize into a byte vector.
impl Eq for ConfigParam
impl StructuralEq for ConfigParam
impl StructuralPartialEq for ConfigParam
Auto Trait Implementations§
impl RefUnwindSafe for ConfigParam
impl Send for ConfigParam
impl Sync for ConfigParam
impl Unpin for ConfigParam
impl UnwindSafe for ConfigParam
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request