[][src]Struct solana_runtime::feature::Feature

pub struct Feature {
    pub activated_at: Option<Slot>,
}

The Feature struct is the on-chain representation of a runtime feature.

Feature activation is accomplished by:

  1. Activation is requested by the feature authority, who issues a transaction to create the feature account. The newly created feature account will have the value of Feature::default()
  2. When the next epoch is entered the runtime will check for new activation requests and active them. When this occurs, the activation slot is recorded in the feature account

Fields

activated_at: Option<Slot>

Implementations

impl Feature[src]

pub fn size_of() -> usize[src]

pub fn from_account(account: &Account) -> Option<Self>[src]

pub fn to_account(&self, account: &mut Account) -> Option<()>[src]

pub fn create_account(&self, lamports: u64) -> Account[src]

Trait Implementations

impl Debug for Feature[src]

impl Default for Feature[src]

impl<'de> Deserialize<'de> for Feature[src]

impl PartialEq<Feature> for Feature[src]

impl Serialize for Feature[src]

impl StructuralPartialEq for Feature[src]

Auto Trait Implementations

impl RefUnwindSafe for Feature

impl Send for Feature

impl Sync for Feature

impl Unpin for Feature

impl UnwindSafe for Feature

Blanket Implementations

impl<T> AbiEnumVisitor for T where
    T: Serialize + ?Sized
[src]

impl<T> AbiEnumVisitor for T where
    T: AbiExample + Serialize + ?Sized
[src]

impl<T> AbiExample for T[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,