Enum light_registry::errors::RegistryError
source · #[repr(u32)]pub enum RegistryError {
Show 25 variants
InvalidForester = 0,
NotInReportWorkPhase = 1,
StakeAccountAlreadySynced = 2,
EpochEnded = 3,
ForesterNotEligible = 4,
NotInRegistrationPeriod = 5,
WeightInsuffient = 6,
ForesterAlreadyRegistered = 7,
InvalidEpochAccount = 8,
InvalidEpoch = 9,
EpochStillInProgress = 10,
NotInActivePhase = 11,
ForesterAlreadyReportedWork = 12,
InvalidNetworkFee = 13,
FinalizeCounterExceeded = 14,
CpiContextAccountMissing = 15,
ArithmeticUnderflow = 16,
RegistrationNotFinalized = 17,
CpiContextAccountInvalidDataLen = 18,
InvalidConfigUpdate = 19,
InvalidSigner = 20,
GetLatestRegisterEpochFailed = 21,
GetCurrentActiveEpochFailed = 22,
ForesterUndefined = 23,
ForesterDefined = 24,
}Variants§
InvalidForester = 0
NotInReportWorkPhase = 1
StakeAccountAlreadySynced = 2
EpochEnded = 3
ForesterNotEligible = 4
NotInRegistrationPeriod = 5
WeightInsuffient = 6
ForesterAlreadyRegistered = 7
InvalidEpochAccount = 8
InvalidEpoch = 9
EpochStillInProgress = 10
NotInActivePhase = 11
ForesterAlreadyReportedWork = 12
InvalidNetworkFee = 13
FinalizeCounterExceeded = 14
CpiContextAccountMissing = 15
ArithmeticUnderflow = 16
RegistrationNotFinalized = 17
CpiContextAccountInvalidDataLen = 18
InvalidConfigUpdate = 19
InvalidSigner = 20
GetLatestRegisterEpochFailed = 21
GetCurrentActiveEpochFailed = 22
ForesterUndefined = 23
ForesterDefined = 24
Implementations§
Trait Implementations§
source§impl Clone for RegistryError
impl Clone for RegistryError
source§fn clone(&self) -> RegistryError
fn clone(&self) -> RegistryError
Returns a copy 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 RegistryError
impl Debug for RegistryError
source§impl Display for RegistryError
impl Display for RegistryError
source§impl From<RegistryError> for Error
impl From<RegistryError> for Error
source§fn from(error_code: RegistryError) -> Error
fn from(error_code: RegistryError) -> Error
Converts to this type from the input type.
source§impl From<RegistryError> for u32
impl From<RegistryError> for u32
source§fn from(e: RegistryError) -> u32
fn from(e: RegistryError) -> u32
Converts to this type from the input type.
impl Copy for RegistryError
Auto Trait Implementations§
impl Freeze for RegistryError
impl RefUnwindSafe for RegistryError
impl Send for RegistryError
impl Sync for RegistryError
impl Unpin for RegistryError
impl UnwindSafe for RegistryError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more