pub struct PartitionedEpochRewardsConfig {
pub stake_account_stores_per_block: u64,
}๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Expand description
Configuration options for partitioned epoch rewards.
Fieldsยง
ยงstake_account_stores_per_block: u64๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.number of stake accounts to store in one block during partitioned reward interval normally, this is a number tuned for reasonable performance, such as 4096 accounts/block
Implementationsยง
Sourceยงimpl PartitionedEpochRewardsConfig
impl PartitionedEpochRewardsConfig
Sourcepub fn new_for_test(stake_account_stores_per_block: u64) -> Self
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn new_for_test(stake_account_stores_per_block: u64) -> Self
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Only for tests and benchmarks
Trait Implementationsยง
Sourceยงimpl Clone for PartitionedEpochRewardsConfig
impl Clone for PartitionedEpochRewardsConfig
Sourceยงfn clone(&self) -> PartitionedEpochRewardsConfig
fn clone(&self) -> PartitionedEpochRewardsConfig
Returns a duplicate 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 moreimpl Copy for PartitionedEpochRewardsConfig
Auto Trait Implementationsยง
impl Freeze for PartitionedEpochRewardsConfig
impl RefUnwindSafe for PartitionedEpochRewardsConfig
impl Send for PartitionedEpochRewardsConfig
impl Sync for PartitionedEpochRewardsConfig
impl Unpin for PartitionedEpochRewardsConfig
impl UnwindSafe for PartitionedEpochRewardsConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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