pub enum HyperLiquidErrorCode {
InvalidSignature,
InsufficientMargin,
OrderNotFound,
InvalidParameter,
RateLimited,
ServerError,
UserNotFound,
InvalidAsset,
PositionNotFound,
OrderWouldCross,
ReduceOnlyViolation,
Unknown(String),
}Expand description
HyperLiquid-specific error codes.
Variants§
InvalidSignature
Invalid signature
InsufficientMargin
Insufficient margin/balance
OrderNotFound
Order not found
InvalidParameter
Invalid parameter
RateLimited
Rate limited
ServerError
Server error
UserNotFound
User not found
InvalidAsset
Invalid asset
PositionNotFound
Position not found
OrderWouldCross
Order would cross
ReduceOnlyViolation
Reduce only violation
Unknown(String)
Unknown error
Trait Implementations§
Source§impl Clone for HyperLiquidErrorCode
impl Clone for HyperLiquidErrorCode
Source§fn clone(&self) -> HyperLiquidErrorCode
fn clone(&self) -> HyperLiquidErrorCode
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 HyperLiquidErrorCode
impl Debug for HyperLiquidErrorCode
Source§impl Display for HyperLiquidErrorCode
impl Display for HyperLiquidErrorCode
Source§impl From<HyperLiquidErrorCode> for Error
impl From<HyperLiquidErrorCode> for Error
Source§fn from(code: HyperLiquidErrorCode) -> Self
fn from(code: HyperLiquidErrorCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HyperLiquidErrorCode
impl PartialEq for HyperLiquidErrorCode
impl Eq for HyperLiquidErrorCode
impl StructuralPartialEq for HyperLiquidErrorCode
Auto Trait Implementations§
impl Freeze for HyperLiquidErrorCode
impl RefUnwindSafe for HyperLiquidErrorCode
impl Send for HyperLiquidErrorCode
impl Sync for HyperLiquidErrorCode
impl Unpin for HyperLiquidErrorCode
impl UnwindSafe for HyperLiquidErrorCode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.