Struct solana_sdk::feature_set::FeatureSet
source · [−]Expand description
FeatureSet
holds the set of currently active/inactive runtime features
Fields
active: HashMap<Pubkey, Slot>
inactive: HashSet<Pubkey>
Implementations
sourceimpl FeatureSet
impl FeatureSet
pub fn is_active(&self, feature_id: &Pubkey) -> bool
pub fn activated_slot(&self, feature_id: &Pubkey) -> Option<Slot>
sourcepub fn full_inflation_features_enabled(&self) -> HashSet<Pubkey>
pub fn full_inflation_features_enabled(&self) -> HashSet<Pubkey>
List of enabled features that trigger full inflation
sourcepub fn all_enabled() -> Self
pub fn all_enabled() -> Self
All features enabled, useful for testing
Trait Implementations
sourceimpl AbiExample for FeatureSet
impl AbiExample for FeatureSet
sourceimpl Clone for FeatureSet
impl Clone for FeatureSet
sourcefn clone(&self) -> FeatureSet
fn clone(&self) -> FeatureSet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FeatureSet
impl Debug for FeatureSet
Auto Trait Implementations
impl RefUnwindSafe for FeatureSet
impl Send for FeatureSet
impl Sync for FeatureSet
impl Unpin for FeatureSet
impl UnwindSafe for FeatureSet
Blanket Implementations
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more