#[repr(u32)]pub enum RoshiError {
Show 22 variants
InvalidOp = 0,
InstructionSliceOutOfBounds = 1,
AccountIndexOutOfBounds = 2,
InvalidBps = 3,
VaultPaused = 4,
UnauthorizedAction = 5,
InvalidProgramConfigAccount = 6,
InvalidVaultAccount = 7,
InvalidActionAccount = 8,
InvalidWithdrawalTicketAccount = 9,
InvalidAssetAccount = 10,
InvalidAccessProof = 11,
InvalidVaultTag = 12,
DivisionByZero = 13,
InvalidDecimals = 14,
InvalidVaultState = 15,
Overflow = 16,
ResultDoesNotFit = 17,
ZeroOutput = 18,
SlippageExceeded = 19,
InvalidTokenAccount = 20,
InvalidMintAccount = 21,
}Variants§
InvalidOp = 0
InstructionSliceOutOfBounds = 1
AccountIndexOutOfBounds = 2
InvalidBps = 3
VaultPaused = 4
InvalidProgramConfigAccount = 6
InvalidVaultAccount = 7
InvalidActionAccount = 8
InvalidWithdrawalTicketAccount = 9
InvalidAssetAccount = 10
InvalidAccessProof = 11
InvalidVaultTag = 12
DivisionByZero = 13
InvalidDecimals = 14
InvalidVaultState = 15
Overflow = 16
ResultDoesNotFit = 17
ZeroOutput = 18
SlippageExceeded = 19
InvalidTokenAccount = 20
InvalidMintAccount = 21
Trait Implementations§
Source§impl Clone for RoshiError
impl Clone for RoshiError
Source§fn clone(&self) -> RoshiError
fn clone(&self) -> RoshiError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RoshiError
Source§impl Debug for RoshiError
impl Debug for RoshiError
impl Eq for RoshiError
Source§impl From<RoshiError> for ProgramError
impl From<RoshiError> for ProgramError
Source§fn from(error: RoshiError) -> Self
fn from(error: RoshiError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RoshiError
impl PartialEq for RoshiError
Source§fn eq(&self, other: &RoshiError) -> bool
fn eq(&self, other: &RoshiError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RoshiError
Auto Trait Implementations§
impl Freeze for RoshiError
impl RefUnwindSafe for RoshiError
impl Send for RoshiError
impl Sync for RoshiError
impl Unpin for RoshiError
impl UnsafeUnpin for RoshiError
impl UnwindSafe for RoshiError
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