#[repr(u32)]pub enum SablierError {
InvalidThreadResponse = 0,
InvalidThreadState = 1,
InvalidTriggerVariant = 2,
TriggerConditionFailed = 3,
ThreadBusy = 4,
ThreadPaused = 5,
RateLimitExeceeded = 6,
MaxRateLimitExceeded = 7,
UnauthorizedWrite = 8,
WithdrawalTooLarge = 9,
}Expand description
Errors for the the Sablier 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
TThe provided trigger variant is invalid.
TriggerConditionFailed = 3
Thrown if a exec instruction is invalid because the thread’s trigger condition has not been met.
ThreadBusy = 4
ThreadPaused = 5
Thrown if a request is invalid because the thread is currently paused.
RateLimitExeceeded = 6
Thrown if a exec instruction would cause a thread to exceed its rate limit.
MaxRateLimitExceeded = 7
Thrown if a thread authority attempts to set a rate limit above the maximum allowed value.
Thrown if an inner instruction attempted to write to an unauthorized address.
WithdrawalTooLarge = 9
Thrown if the user attempts to withdraw SOL that would put a thread below it’s minimum rent threshold.
Implementations§
Trait Implementations§
source§impl Clone for SablierError
impl Clone for SablierError
source§fn clone(&self) -> SablierError
fn clone(&self) -> SablierError
Returns a copy of the value. Read more
1.6.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 SablierError
impl Debug for SablierError
source§impl Display for SablierError
impl Display for SablierError
source§impl From<SablierError> for Error
impl From<SablierError> for Error
source§fn from(error_code: SablierError) -> Error
fn from(error_code: SablierError) -> Error
Converts to this type from the input type.
source§impl From<SablierError> for u32
impl From<SablierError> for u32
source§fn from(e: SablierError) -> u32
fn from(e: SablierError) -> u32
Converts to this type from the input type.
impl Copy for SablierError
Auto Trait Implementations§
impl Freeze for SablierError
impl RefUnwindSafe for SablierError
impl Send for SablierError
impl Sync for SablierError
impl Unpin for SablierError
impl UnwindSafe for SablierError
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