#[repr(u32)]
pub enum ClockworkError {
DataHashNotPresent,
InvalidCrankResponse,
InvalidQueueState,
TriggerNotActive,
QueuePaused,
RateLimitExeceeded,
MaxRateLimitExceeded,
UnauthorizedWrite,
}
Expand description
Errors for the the Clockwork queue program.
Variants
DataHashNotPresent
Thrown if a crank instruction requires a data_hash
argument and one was not provided by the worker.
InvalidCrankResponse
Thrown if a crank response has an invalid program ID or cannot be parsed.
InvalidQueueState
Thrown if a queue has an invalid state and cannot complete the operation.
TriggerNotActive
Thrown if a crank instruction is invalid because the queue’s trigger condition has not been met.
QueuePaused
Thrown if a request is invalid because the queue is currently paused.
RateLimitExeceeded
Thrown if a crank instruction would cause a queue to exceed its rate limit.
MaxRateLimitExceeded
Thrown if a queue authority attempts to set a rate limit above the maximum allowed value.
UnauthorizedWrite
Thrown if an inner instruction attempted to write to an unauthorized address.
Implementations
sourceimpl ClockworkError
impl ClockworkError
Trait Implementations
sourceimpl Clone for ClockworkError
impl Clone for ClockworkError
sourcefn clone(&self) -> ClockworkError
fn clone(&self) -> ClockworkError
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ClockworkError
impl Debug for ClockworkError
sourceimpl Display for ClockworkError
impl Display for ClockworkError
sourceimpl From<ClockworkError> for Error
impl From<ClockworkError> for Error
sourcefn from(error_code: ClockworkError) -> Error
fn from(error_code: ClockworkError) -> Error
Converts to this type from the input type.
sourceimpl From<ClockworkError> for u32
impl From<ClockworkError> for u32
sourcefn from(e: ClockworkError) -> u32
fn from(e: ClockworkError) -> u32
Converts to this type from the input type.
impl Copy for ClockworkError
Auto Trait Implementations
impl RefUnwindSafe for ClockworkError
impl Send for ClockworkError
impl Sync for ClockworkError
impl Unpin for ClockworkError
impl UnwindSafe for ClockworkError
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more