#[repr(i32)]pub enum ErrorCode {
Show 30 variants
Unknown = -1_000,
Disconnected = -1_001,
Unauthorized = -1_002,
TooManyRequests = -1_003,
UnexpectedResponse = -1_006,
Timeout = -1_007,
UnknownOrder = -1_014,
TooManyOrders = -1_015,
ServiceUnavailable = -1_016,
UnsupportedOperation = -1_020,
InvalidTimestamp = -1_021,
InvalidSignature = -1_022,
MandatoryParamMissing = -1_102,
BadPrecision = -1_111,
InvalidOrderType = -1_116,
InvalidSide = -1_117,
InvalidSymbol = -1_122,
InvalidUserAddress = -1_123,
NewOrderRejected = -2_010,
CancelRejected = -2_011,
NoSuchOrder = -2_013,
ApiKeyFormatInvalid = -2_014,
InvalidApiKeyIpPermissions = -2_015,
OrderWouldTrigger = -2_021,
InvalidSubscriptionFormat = -1_004,
SymbolNotFound = -1_005,
ValidationError = -1_008,
SubscriptionExists = -1_010,
ClientNotFound = -4_001,
CouldNotSendMessage = -4_002,
}Expand description
Error codes aligned with Binance API
Variants§
Unknown = -1_000
Disconnected = -1_001
TooManyRequests = -1_003
UnexpectedResponse = -1_006
Timeout = -1_007
UnknownOrder = -1_014
TooManyOrders = -1_015
UnsupportedOperation = -1_020
InvalidTimestamp = -1_021
InvalidSignature = -1_022
MandatoryParamMissing = -1_102
BadPrecision = -1_111
InvalidOrderType = -1_116
InvalidSide = -1_117
InvalidSymbol = -1_122
InvalidUserAddress = -1_123
NewOrderRejected = -2_010
CancelRejected = -2_011
NoSuchOrder = -2_013
ApiKeyFormatInvalid = -2_014
InvalidApiKeyIpPermissions = -2_015
OrderWouldTrigger = -2_021
InvalidSubscriptionFormat = -1_004
SymbolNotFound = -1_005
ValidationError = -1_008
SubscriptionExists = -1_010
ClientNotFound = -4_001
CouldNotSendMessage = -4_002
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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