Enum clockwork_sdk::queue_program::errors::ClockworkError
source · [−]#[repr(u32)]
pub enum ClockworkError {
InvalidCrankResponse,
InvalidQueueState,
InvalidTrigger,
PausedQueue,
RateLimitExeceeded,
RateLimitTooLarge,
UnauthorizedWrite,
}Expand description
Errors for the the Clockwork queue program.
Variants
InvalidCrankResponse
Thrown if a crank response has an invalid program ID or cannot be parsed.
InvalidQueueState
Thrown if a queue has an invalid state.
InvalidTrigger
Thrown if a request is invalid because the queue’s trigger condition has not been met.
PausedQueue
Thrown if a request is invalid because the queue is currently paused.
RateLimitExeceeded
Thrown if a request would cause a queue to exceed its rate limit.
RateLimitTooLarge
Thrown if a value provided for rate limit exceeds 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 · sourcefn clone_from(&mut self, source: &Self)
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
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