pub struct FeatureSet {
    pub active: AHashMap<Pubkey, u64>,
    pub inactive: AHashSet<Pubkey>,
}👎Deprecated since 4.0.1: DO NOT USE. Crates that need to break consensus should expose their own minimal configuration type
Expand description
FeatureSet holds the set of currently active/inactive runtime features
Fields§
§active: AHashMap<Pubkey, u64>👎Deprecated since 4.0.1: DO NOT USE. Crates that need to break consensus should expose their own minimal configuration type
§inactive: AHashSet<Pubkey>👎Deprecated since 4.0.1: DO NOT USE. Crates that need to break consensus should expose their own minimal configuration type
Implementations§
Source§impl FeatureSet
 
impl FeatureSet
pub fn is_active(&self, feature_id: &Pubkey) -> bool
👎Deprecated since 4.0.1: DO NOT USE. Crates that need to break consensus should expose their own minimal configuration type
pub fn activated_slot(&self, feature_id: &Pubkey) -> Option<u64>
👎Deprecated since 4.0.1: DO NOT USE. Crates that need to break consensus should expose their own minimal configuration type
Sourcepub fn activate(&mut self, feature_id: &Pubkey, slot: u64)
 👎Deprecated since 4.0.1: DO NOT USE. Crates that need to break consensus should expose their own minimal configuration type
pub fn activate(&mut self, feature_id: &Pubkey, slot: u64)
Activate a feature
Sourcepub fn deactivate(&mut self, feature_id: &Pubkey)
 👎Deprecated since 4.0.1: DO NOT USE. Crates that need to break consensus should expose their own minimal configuration type
pub fn deactivate(&mut self, feature_id: &Pubkey)
Deactivate a feature
Trait Implementations§
Source§impl Clone for FeatureSet
 
impl Clone for FeatureSet
Source§fn clone(&self) -> FeatureSet
 
fn clone(&self) -> FeatureSet
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 moreSource§impl Debug for FeatureSet
 
impl Debug for FeatureSet
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