#[repr(u32)]pub enum FeatureManagementError {
Unauthorized = 0,
InvalidFeatureName = 1,
FeatureNotFound = 2,
InvalidTimeRange = 3,
SerializationError = 4,
DeserializationError = 5,
InvalidInstructionData = 6,
InternalError = 7,
DuplicateFeature = 8,
InvalidStorageAccount = 9,
AlreadyInitialized = 10,
NotInitialized = 11,
}Expand description
Errors that can be returned by the Feature Management Program
Error codes are explicitly assigned to ensure stability across versions. Do not reorder variants or change their discriminant values.
Variants§
Unauthorized access - signature verification failed
InvalidFeatureName = 1
Invalid feature name (empty or too long)
FeatureNotFound = 2
Feature not found
InvalidTimeRange = 3
Invalid time range (start time >= end time)
SerializationError = 4
Serialization error
DeserializationError = 5
Deserialization error
InvalidInstructionData = 6
Invalid instruction data
InternalError = 7
Internal error (e.g., mutex lock failure)
DuplicateFeature = 8
Duplicate feature in modification list
InvalidStorageAccount = 9
Invalid storage account (not the expected PDA)
AlreadyInitialized = 10
Storage account already initialized
NotInitialized = 11
Storage account not initialized
Trait Implementations§
Source§impl Clone for FeatureManagementError
impl Clone for FeatureManagementError
Source§fn clone(&self) -> FeatureManagementError
fn clone(&self) -> FeatureManagementError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FeatureManagementError
impl Debug for FeatureManagementError
Source§impl From<FeatureManagementError> for InstructionError
impl From<FeatureManagementError> for InstructionError
Source§fn from(e: FeatureManagementError) -> Self
fn from(e: FeatureManagementError) -> Self
Converts to this type from the input type.
Source§impl From<FeatureManagementError> for ProgramError
impl From<FeatureManagementError> for ProgramError
Source§fn from(e: FeatureManagementError) -> Self
fn from(e: FeatureManagementError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FeatureManagementError
impl PartialEq for FeatureManagementError
Source§fn eq(&self, other: &FeatureManagementError) -> bool
fn eq(&self, other: &FeatureManagementError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FeatureManagementError
impl StructuralPartialEq for FeatureManagementError
Auto Trait Implementations§
impl Freeze for FeatureManagementError
impl RefUnwindSafe for FeatureManagementError
impl Send for FeatureManagementError
impl Sync for FeatureManagementError
impl Unpin for FeatureManagementError
impl UnsafeUnpin for FeatureManagementError
impl UnwindSafe for FeatureManagementError
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