#[repr(u32)]pub enum ReflectErrorCodes {
InvalidUsdcSpotMarketAccount = 0,
InvalidReflectUserAccount = 1,
InvalidUsdcControllerAccount = 2,
MathError = 3,
ConversionFailed = 4,
SpotMarketNotFound = 5,
FailedUnwrap = 6,
InsufficientData = 7,
DeserializationError = 8,
MathOverflow = 9,
}Variants§
InvalidUsdcSpotMarketAccount = 0
InvalidReflectUserAccount = 1
InvalidUsdcControllerAccount = 2
MathError = 3
ConversionFailed = 4
SpotMarketNotFound = 5
FailedUnwrap = 6
InsufficientData = 7
DeserializationError = 8
MathOverflow = 9
Implementations§
Trait Implementations§
Source§impl Clone for ReflectErrorCodes
impl Clone for ReflectErrorCodes
Source§fn clone(&self) -> ReflectErrorCodes
fn clone(&self) -> ReflectErrorCodes
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 ReflectErrorCodes
Source§impl Debug for ReflectErrorCodes
impl Debug for ReflectErrorCodes
Source§impl Display for ReflectErrorCodes
impl Display for ReflectErrorCodes
Source§impl From<Error> for ReflectErrorCodes
impl From<Error> for ReflectErrorCodes
Source§impl From<ReflectErrorCodes> for u32
impl From<ReflectErrorCodes> for u32
Source§fn from(e: ReflectErrorCodes) -> u32
fn from(e: ReflectErrorCodes) -> u32
Converts to this type from the input type.
Source§impl From<ReflectErrorCodes> for Error
impl From<ReflectErrorCodes> for Error
Source§fn from(error_code: ReflectErrorCodes) -> Error
fn from(error_code: ReflectErrorCodes) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReflectErrorCodes
impl RefUnwindSafe for ReflectErrorCodes
impl Send for ReflectErrorCodes
impl Sync for ReflectErrorCodes
impl Unpin for ReflectErrorCodes
impl UnsafeUnpin for ReflectErrorCodes
impl UnwindSafe for ReflectErrorCodes
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