Skip to main content

AntegenThreadError

Enum AntegenThreadError 

Source
#[repr(u32)]
pub enum AntegenThreadError {
Show 43 variants InvalidThreadResponse = 0, InvalidThreadState = 1, InvalidTriggerVariant = 2, InvalidNonceAccount = 3, TriggerConditionFailed = 4, ThreadBusy = 5, ThreadPaused = 6, RateLimitExeceeded = 7, MaxRateLimitExceeded = 8, UnauthorizedWrite = 9, WithdrawalTooLarge = 10, ThreadIdTooLong = 11, InsufficientFunds = 12, MathOverflow = 13, ThreadHasNoNonceAccount = 14, ThreadBeingObserved = 15, ObserverNotClaimed = 16, InvalidThreadAuthority = 17, InvalidObserverAuthority = 18, InvalidRegistryAdmin = 19, InvalidInstruction = 20, InvalidSignatory = 21, MustBeCalledViaCPI = 22, AlreadyClaimed = 23, WrongFiberIndex = 24, ObserverPriorityActive = 25, TriggerNotReady = 26, NonceRequired = 27, InvalidObserverAccount = 28, InvalidConfigAdmin = 29, GlobalPauseActive = 30, InvalidAuthority = 31, InvalidFeePercentage = 32, MissingFiberAccount = 33, InvalidFiberIndex = 34, ThreadHasFibers = 35, ThreadHasNoFibersToExecute = 36, InvalidExecIndex = 37, FiberAccountRequired = 38, InvalidFiberCursor = 39, InvalidFiberAccount = 40, MissingFiberAccounts = 41, CloseNotSignaled = 42,
}
Expand description

Errors for the the Antegen thread program.

Variants§

§

InvalidThreadResponse = 0

Thrown if a exec response has an invalid program ID or cannot be parsed.

§

InvalidThreadState = 1

Thrown if a thread has an invalid state and cannot complete the operation.

§

InvalidTriggerVariant = 2

The provided trigger variant is invalid.

§

InvalidNonceAccount = 3

The provided nonce account is invalid.

§

TriggerConditionFailed = 4

Thrown if a exec instruction is invalid because the thread’s trigger condition has not been met.

§

ThreadBusy = 5

§

ThreadPaused = 6

Thrown if a request is invalid because the thread is currently paused.

§

RateLimitExeceeded = 7

Thrown if a exec instruction would cause a thread to exceed its rate limit.

§

MaxRateLimitExceeded = 8

Thrown if a thread authority attempts to set a rate limit above the maximum allowed value.

§

UnauthorizedWrite = 9

Thrown if an inner instruction attempted to write to an unauthorized address.

§

WithdrawalTooLarge = 10

Thrown if the user attempts to withdraw SOL that would put a thread below it’s minimum rent threshold.

§

ThreadIdTooLong = 11

§

InsufficientFunds = 12

§

MathOverflow = 13

§

ThreadHasNoNonceAccount = 14

§

ThreadBeingObserved = 15

§

ObserverNotClaimed = 16

§

InvalidThreadAuthority = 17

§

InvalidObserverAuthority = 18

§

InvalidRegistryAdmin = 19

§

InvalidInstruction = 20

§

InvalidSignatory = 21

§

MustBeCalledViaCPI = 22

§

AlreadyClaimed = 23

§

WrongFiberIndex = 24

§

ObserverPriorityActive = 25

§

TriggerNotReady = 26

§

NonceRequired = 27

§

InvalidObserverAccount = 28

§

InvalidConfigAdmin = 29

§

GlobalPauseActive = 30

§

InvalidAuthority = 31

§

InvalidFeePercentage = 32

§

MissingFiberAccount = 33

§

InvalidFiberIndex = 34

§

ThreadHasFibers = 35

§

ThreadHasNoFibersToExecute = 36

§

InvalidExecIndex = 37

§

FiberAccountRequired = 38

§

InvalidFiberCursor = 39

§

InvalidFiberAccount = 40

§

MissingFiberAccounts = 41

§

CloseNotSignaled = 42

Implementations§

Source§

impl AntegenThreadError

Source

pub fn name(&self) -> String

Gets the name of this [#enum_name].

Trait Implementations§

Source§

impl Clone for AntegenThreadError

Source§

fn clone(&self) -> AntegenThreadError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AntegenThreadError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for AntegenThreadError

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<AntegenThreadError> for Error

Source§

fn from(error_code: AntegenThreadError) -> Error

Converts to this type from the input type.
Source§

impl From<AntegenThreadError> for u32

Source§

fn from(e: AntegenThreadError) -> u32

Converts to this type from the input type.
Source§

impl Copy for AntegenThreadError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.