Enum jormungandr::blockcfg::config::RewardParams
source · pub enum RewardParams {
Linear {
constant: u64,
ratio: Ratio,
epoch_start: u32,
epoch_rate: NonZeroU32,
},
Halving {
constant: u64,
ratio: Ratio,
epoch_start: u32,
epoch_rate: NonZeroU32,
},
}
Variants§
Trait Implementations§
source§impl Arbitrary for RewardParams
impl Arbitrary for RewardParams
source§impl Clone for RewardParams
impl Clone for RewardParams
source§fn clone(&self) -> RewardParams
fn clone(&self) -> RewardParams
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 RewardParams
impl Debug for RewardParams
source§impl From<RewardParams> for RewardParams
impl From<RewardParams> for RewardParams
source§fn from(rp: RewardParams) -> RewardParams
fn from(rp: RewardParams) -> RewardParams
Converts to this type from the input type.
source§impl PartialEq<RewardParams> for RewardParams
impl PartialEq<RewardParams> for RewardParams
source§fn eq(&self, other: &RewardParams) -> bool
fn eq(&self, other: &RewardParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RewardParams
impl StructuralEq for RewardParams
impl StructuralPartialEq for RewardParams
Auto Trait Implementations§
impl RefUnwindSafe for RewardParams
impl Send for RewardParams
impl Sync for RewardParams
impl Unpin for RewardParams
impl UnwindSafe for RewardParams
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