#[repr(i32)]pub enum ProtoOaErrorCode {
Show 43 variants
OaAuthTokenExpired = 1,
AccountNotAuthorized = 2,
RetNoSuchLogin = 12,
AlreadyLoggedIn = 14,
RetAccountDisabled = 64,
ChClientAuthFailure = 101,
ChClientNotAuthenticated = 102,
ChClientAlreadyAuthenticated = 103,
ChAccessTokenInvalid = 104,
ChServerNotReachable = 105,
ChCtidTraderAccountNotFound = 106,
ChOaClientNotFound = 107,
RequestFrequencyExceeded = 108,
ServerIsUnderMaintenance = 109,
ChannelIsBlocked = 110,
ConnectionsLimitExceeded = 67,
WorseGslNotAllowed = 68,
SymbolHasHoliday = 69,
NotSubscribedToSpots = 112,
AlreadySubscribed = 113,
SymbolNotFound = 114,
UnknownSymbol = 115,
IncorrectBoundaries = 35,
NoQuotes = 117,
NotEnoughMoney = 118,
MaxExposureReached = 119,
PositionNotFound = 120,
OrderNotFound = 121,
PositionNotOpen = 122,
PositionLocked = 123,
TooManyPositions = 124,
TradingBadVolume = 125,
TradingBadStops = 126,
TradingBadPrices = 127,
TradingBadStake = 128,
ProtectionIsTooCloseToMarket = 129,
TradingBadExpirationDate = 130,
PendingExecution = 131,
TradingDisabled = 132,
TradingNotAllowed = 133,
UnableToCancelOrder = 134,
UnableToAmendOrder = 135,
ShortSellingNotAllowed = 136,
}Variants§
OaAuthTokenExpired = 1
AccountNotAuthorized = 2
RetNoSuchLogin = 12
AlreadyLoggedIn = 14
RetAccountDisabled = 64
ChClientAuthFailure = 101
ChClientNotAuthenticated = 102
ChClientAlreadyAuthenticated = 103
ChAccessTokenInvalid = 104
ChServerNotReachable = 105
ChCtidTraderAccountNotFound = 106
ChOaClientNotFound = 107
RequestFrequencyExceeded = 108
ServerIsUnderMaintenance = 109
ChannelIsBlocked = 110
ConnectionsLimitExceeded = 67
WorseGslNotAllowed = 68
SymbolHasHoliday = 69
NotSubscribedToSpots = 112
AlreadySubscribed = 113
SymbolNotFound = 114
UnknownSymbol = 115
IncorrectBoundaries = 35
NoQuotes = 117
NotEnoughMoney = 118
MaxExposureReached = 119
PositionNotFound = 120
OrderNotFound = 121
PositionNotOpen = 122
PositionLocked = 123
TooManyPositions = 124
TradingBadVolume = 125
TradingBadStops = 126
TradingBadPrices = 127
TradingBadStake = 128
ProtectionIsTooCloseToMarket = 129
TradingBadExpirationDate = 130
PendingExecution = 131
TradingDisabled = 132
TradingNotAllowed = 133
UnableToCancelOrder = 134
UnableToAmendOrder = 135
ShortSellingNotAllowed = 136
Implementations§
Source§impl ProtoOaErrorCode
impl ProtoOaErrorCode
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of ProtoOaErrorCode.
Sourcepub fn from_i32(value: i32) -> Option<ProtoOaErrorCode>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ProtoOaErrorCode>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ProtoOaErrorCode, or None if value is not a valid variant.
Source§impl ProtoOaErrorCode
impl ProtoOaErrorCode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ProtoOaErrorCode
impl Clone for ProtoOaErrorCode
impl Copy for ProtoOaErrorCode
Source§impl Debug for ProtoOaErrorCode
impl Debug for ProtoOaErrorCode
Source§impl Default for ProtoOaErrorCode
impl Default for ProtoOaErrorCode
Source§fn default() -> ProtoOaErrorCode
fn default() -> ProtoOaErrorCode
Returns the “default value” for a type. Read more
impl Eq for ProtoOaErrorCode
Source§impl From<ProtoOaErrorCode> for ErrorCode
impl From<ProtoOaErrorCode> for ErrorCode
Source§fn from(code: ProtoOaErrorCode) -> Self
fn from(code: ProtoOaErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ProtoOaErrorCode> for i32
impl From<ProtoOaErrorCode> for i32
Source§fn from(value: ProtoOaErrorCode) -> i32
fn from(value: ProtoOaErrorCode) -> i32
Converts to this type from the input type.
Source§impl Hash for ProtoOaErrorCode
impl Hash for ProtoOaErrorCode
Source§impl Ord for ProtoOaErrorCode
impl Ord for ProtoOaErrorCode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProtoOaErrorCode
impl PartialEq for ProtoOaErrorCode
Source§impl PartialOrd for ProtoOaErrorCode
impl PartialOrd for ProtoOaErrorCode
impl StructuralPartialEq for ProtoOaErrorCode
Source§impl TryFrom<i32> for ProtoOaErrorCode
impl TryFrom<i32> for ProtoOaErrorCode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ProtoOaErrorCode, UnknownEnumValue>
fn try_from(value: i32) -> Result<ProtoOaErrorCode, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Forget for ProtoOaErrorCode
impl Freeze for ProtoOaErrorCode
impl Move for ProtoOaErrorCode
impl RefUnwindSafe for ProtoOaErrorCode
impl Send for ProtoOaErrorCode
impl Sync for ProtoOaErrorCode
impl Unpin for ProtoOaErrorCode
impl UnsafeUnpin for ProtoOaErrorCode
impl UnwindSafe for ProtoOaErrorCode
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