pub struct FeatureSet {
pub active: AHashMap<Pubkey, u64>,
pub inactive: AHashSet<Pubkey>,
}๐Deprecated since 2.2.5: Use agave-feature-set instead
Expand description
FeatureSet holds the set of currently active/inactive runtime features
Fieldsยง
ยงactive: AHashMap<Pubkey, u64>๐Deprecated since 2.2.5: Use agave-feature-set instead
ยงinactive: AHashSet<Pubkey>๐Deprecated since 2.2.5: Use agave-feature-set instead
Implementationsยง
Sourceยงimpl FeatureSet
impl FeatureSet
pub fn is_active(&self, feature_id: &Pubkey) -> bool
๐Deprecated since 2.2.5: Use agave-feature-set instead
pub fn activated_slot(&self, feature_id: &Pubkey) -> Option<u64>
๐Deprecated since 2.2.5: Use agave-feature-set instead
Sourcepub fn full_inflation_features_enabled(&self) -> AHashSet<Pubkey>
๐Deprecated since 2.2.5: Use agave-feature-set instead
pub fn full_inflation_features_enabled(&self) -> AHashSet<Pubkey>
List of enabled features that trigger full inflation
Sourcepub fn all_enabled() -> FeatureSet
๐Deprecated since 2.2.5: Use agave-feature-set instead
pub fn all_enabled() -> FeatureSet
All features enabled, useful for testing
Sourcepub fn activate(&mut self, feature_id: &Pubkey, slot: u64)
๐Deprecated since 2.2.5: Use agave-feature-set instead
pub fn activate(&mut self, feature_id: &Pubkey, slot: u64)
Activate a feature
Sourcepub fn deactivate(&mut self, feature_id: &Pubkey)
๐Deprecated since 2.2.5: Use agave-feature-set instead
pub fn deactivate(&mut self, feature_id: &Pubkey)
Deactivate a feature
pub fn new_warmup_cooldown_rate_epoch( &self, epoch_schedule: &EpochSchedule, ) -> Option<u64>
๐Deprecated since 2.2.5: Use agave-feature-set instead
Trait Implementationsยง
Sourceยงimpl AbiExample for FeatureSet
impl AbiExample for FeatureSet
fn example() -> FeatureSet
Sourceยงimpl Clone for FeatureSet
impl Clone for FeatureSet
Sourceยงfn clone(&self) -> FeatureSet
fn clone(&self) -> FeatureSet
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 FeatureSet
impl Debug for FeatureSet
Sourceยงimpl Default for FeatureSet
impl Default for FeatureSet
Sourceยงfn default() -> FeatureSet
fn default() -> FeatureSet
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl PartialEq for FeatureSet
impl PartialEq for FeatureSet
impl Eq for FeatureSet
impl StructuralPartialEq for FeatureSet
Auto Trait Implementationsยง
impl Freeze for FeatureSet
impl RefUnwindSafe for FeatureSet
impl Send for FeatureSet
impl Sync for FeatureSet
impl Unpin for FeatureSet
impl UnwindSafe for FeatureSet
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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