#[repr(u32)]pub enum DloomError {
Show 25 variants
InvalidFeeRates = 0,
InvalidParameters = 1,
InvalidMintOrder = 2,
InvalidMint = 3,
InvalidBinRange = 4,
ZeroLiquidity = 5,
SlippageExceeded = 6,
Unauthorized = 7,
InsufficientLiquidity = 8,
PositionNotEmpty = 9,
ZeroAmount = 10,
InvalidVault = 11,
InvalidBinId = 12,
RangeTooWide = 13,
MathOverflow = 14,
InvalidBinStep = 15,
InsufficientLiquidityForSwap = 16,
InvalidBinCount = 17,
InvalidBinAccount = 18,
InvalidPool = 19,
BinCacheMismatch = 20,
UpdateNotNeeded = 21,
InvalidFeePreference = 22,
FeeShareExceedsTotal = 23,
ReferrerIsTrader = 24,
}Variants§
InvalidFeeRates = 0
InvalidParameters = 1
InvalidMintOrder = 2
InvalidMint = 3
InvalidBinRange = 4
ZeroLiquidity = 5
SlippageExceeded = 6
InsufficientLiquidity = 8
PositionNotEmpty = 9
ZeroAmount = 10
InvalidVault = 11
InvalidBinId = 12
RangeTooWide = 13
MathOverflow = 14
InvalidBinStep = 15
InsufficientLiquidityForSwap = 16
InvalidBinCount = 17
InvalidBinAccount = 18
InvalidPool = 19
BinCacheMismatch = 20
UpdateNotNeeded = 21
InvalidFeePreference = 22
ReferrerIsTrader = 24
Implementations§
Trait Implementations§
Source§impl Clone for DloomError
impl Clone for DloomError
Source§fn clone(&self) -> DloomError
fn clone(&self) -> DloomError
Returns a duplicate of the value. Read more
1.0.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 DloomError
impl Debug for DloomError
Source§impl Display for DloomError
impl Display for DloomError
Source§impl From<DloomError> for Error
impl From<DloomError> for Error
Source§fn from(error_code: DloomError) -> Error
fn from(error_code: DloomError) -> Error
Converts to this type from the input type.
Source§impl From<DloomError> for u32
impl From<DloomError> for u32
Source§fn from(e: DloomError) -> u32
fn from(e: DloomError) -> u32
Converts to this type from the input type.
impl Copy for DloomError
Auto Trait Implementations§
impl Freeze for DloomError
impl RefUnwindSafe for DloomError
impl Send for DloomError
impl Sync for DloomError
impl Unpin for DloomError
impl UnwindSafe for DloomError
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§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