#[repr(u8)]pub enum FeatureGateInstruction {
RevokePendingActivation = 0,
}Expand description
Feature Gate program instructions
Variants§
RevokePendingActivation = 0
Revoke a pending feature activation.
This instruction will burn any lamports in the feature account.
A “pending” feature activation is a feature account that has been
allocated and assigned, but hasn’t yet been updated by the runtime
with an activation_slot.
Features that have been activated by the runtime cannot be revoked.
Accounts expected by this instruction:
[w+s]Feature account[w]Incinerator[ ]System program
Implementations§
Source§impl FeatureGateInstruction
impl FeatureGateInstruction
Sourcepub fn unpack(input: &[u8]) -> Result<Self, ProgramError>
pub fn unpack(input: &[u8]) -> Result<Self, ProgramError>
Unpacks a byte buffer into a FeatureGateInstruction.
Trait Implementations§
Source§impl Clone for FeatureGateInstruction
impl Clone for FeatureGateInstruction
Source§fn clone(&self) -> FeatureGateInstruction
fn clone(&self) -> FeatureGateInstruction
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 FeatureGateInstruction
impl Debug for FeatureGateInstruction
Source§impl From<FeatureGateInstruction> for u8
impl From<FeatureGateInstruction> for u8
Source§fn from(enum_value: FeatureGateInstruction) -> Self
fn from(enum_value: FeatureGateInstruction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FeatureGateInstruction
impl PartialEq for FeatureGateInstruction
Source§impl TryFrom<u8> for FeatureGateInstruction
impl TryFrom<u8> for FeatureGateInstruction
Source§type Error = TryFromPrimitiveError<FeatureGateInstruction>
type Error = TryFromPrimitiveError<FeatureGateInstruction>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for FeatureGateInstruction
impl TryFromPrimitive for FeatureGateInstruction
const NAME: &'static str = "FeatureGateInstruction"
type Primitive = u8
type Error = TryFromPrimitiveError<FeatureGateInstruction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl StructuralPartialEq for FeatureGateInstruction
Auto Trait Implementations§
impl Freeze for FeatureGateInstruction
impl RefUnwindSafe for FeatureGateInstruction
impl Send for FeatureGateInstruction
impl Sync for FeatureGateInstruction
impl Unpin for FeatureGateInstruction
impl UnwindSafe for FeatureGateInstruction
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