pub struct ErrorCode {
pub code: i32,
pub message: &'static str,
}Expand description
TWS error code and its standard description prefix.
Fields§
§code: i32§message: &'static strImplementations§
Source§impl ErrorCode
impl ErrorCode
pub const ALREADY_CONNECTED: Self
pub const CONNECT_FAIL: Self
pub const UPDATE_TWS: Self
pub const NOT_CONNECTED: Self
pub const UNKNOWN_ID: Self
pub const BAD_LENGTH: Self
pub const BAD_MESSAGE: Self
pub const FAIL_SEND_ACCT: Self
pub const FAIL_SEND_EXEC: Self
pub const FAIL_SEND_CORDER: Self
pub const FAIL_SEND_OORDER: Self
pub const FAIL_SEND_REQ_MKT_DEPTH: Self
pub const FAIL_CREATE_SOCK: Self
pub const FAIL_SEND_SERVER_LOG_LEVEL: Self
pub const FAIL_SEND_FA_REQUEST: Self
pub const FAIL_SEND_FA_REPLACE: Self
pub const FAIL_SEND_REQ_SCANNER: Self
pub const FAIL_SEND_CAN_SCANNER: Self
pub const FAIL_SEND_REQ_SCANNER_PARAMETERS: Self
pub const FAIL_SEND_REQ_CALC_IMPLIED_VOLAT: Self
pub const FAIL_SEND_REQ_CALC_OPTION_PRICE: Self
pub const FAIL_SEND_CAN_CALC_IMPLIED_VOLAT: Self
pub const FAIL_SEND_CAN_CALC_OPTION_PRICE: Self
pub const FAIL_SEND_REQ_GLOBAL_CANCEL: Self
pub const FAIL_SEND_REQ_MARKET_DATA_TYPE: Self
pub const FAIL_SEND_CAN_ACCOUNT_DATA: Self
pub const FAIL_SEND_VERIFY_REQUEST: Self
pub const FAIL_SEND_VERIFY_MESSAGE: Self
pub const FAIL_SEND_QUERY_DISPLAY_GROUPS: Self
pub const FAIL_SEND_SUBSCRIBE_TO_GROUP_EVENTS: Self
pub const FAIL_SEND_UPDATE_DISPLAY_GROUP: Self
pub const FAIL_SEND_UNSUBSCRIBE_FROM_GROUP_EVENTS: Self
pub const FAIL_SEND_START_API: Self
pub const FAIL_SEND_VERIFY_AND_AUTH_REQUEST: Self
pub const FAIL_SEND_VERIFY_AND_AUTH_MESSAGE: Self
pub const FAIL_SEND_REQ_POSITIONS_MULTI: Self
pub const FAIL_SEND_CAN_POSITIONS_MULTI: Self
pub const FAIL_SEND_REQ_ACCOUNT_UPDATES_MULTI: Self
pub const FAIL_SEND_CAN_ACCOUNT_UPDATES_MULTI: Self
pub const FAIL_SEND_REQ_SEC_DEF_OPT_PARAMS: Self
pub const FAIL_SEND_REQ_SOFT_DOLLAR_TIERS: Self
pub const FAIL_SEND_REQ_FAMILY_CODES: Self
pub const FAIL_SEND_REQ_MATCHING_SYMBOLS: Self
pub const FAIL_SEND_REQ_MKT_DEPTH_EXCHANGES: Self
pub const FAIL_SEND_REQ_SMART_COMPONENTS: Self
pub const FAIL_SEND_REQ_NEWS_PROVIDERS: Self
pub const FAIL_SEND_REQ_NEWS_ARTICLE: Self
pub const FAIL_SEND_REQ_HISTORICAL_NEWS: Self
pub const FAIL_SEND_REQ_HEAD_TIMESTAMP: Self
pub const FAIL_SEND_REQ_HISTOGRAM_DATA: Self
pub const FAIL_SEND_CANCEL_HISTOGRAM_DATA: Self
pub const FAIL_SEND_CANCEL_HEAD_TIMESTAMP: Self
pub const FAIL_SEND_REQ_MARKET_RULE: Self
pub const FAIL_SEND_REQ_PNL: Self
pub const FAIL_SEND_CANCEL_PNL: Self
pub const FAIL_SEND_REQ_PNL_SINGLE: Self
pub const FAIL_SEND_CANCEL_PNL_SINGLE: Self
pub const FAIL_SEND_REQ_HISTORICAL_TICKS: Self
pub const FAIL_SEND_REQ_TICK_BY_TICK_DATA: Self
pub const FAIL_SEND_CANCEL_TICK_BY_TICK_DATA: Self
pub const FAIL_SEND_REQ_COMPLETED_ORDERS: Self
pub const FAIL_SEND_REQ_WSH_META_DATA: Self
pub const FAIL_SEND_CAN_WSH_META_DATA: Self
pub const FAIL_SEND_REQ_WSH_EVENT_DATA: Self
pub const FAIL_SEND_CAN_WSH_EVENT_DATA: Self
pub const FAIL_SEND_REQ_USER_INFO: Self
pub const FA_PROFILE_NOT_SUPPORTED: Self
pub const FAIL_SEND_REQ_CURRENT_TIME_IN_MILLIS: Self
pub const FAIL_SEND_CAN_MKT_DEPTH: Self
pub const FAIL_SEND_CANCEL_CONTRACT_DATA: Self
pub const FAIL_SEND_CANCEL_HISTORICAL_TICKS: Self
pub const FAIL_SEND_REQ_CONFIG: Self
pub const FAIL_SEND_UPDATE_CONFIG: Self
pub const FAIL_SEND_REQ_MKT_DATA: Self
pub const FAIL_SEND_CAN_MKT_DATA: Self
pub const FAIL_SEND_ORDER: Self
pub const FAIL_SEND_CANCEL_ORDER: Self = Self::FAIL_SEND_CORDER
pub const FAIL_SEND_REQ_CONTRACT_DATA: Self
pub const FAIL_SEND_REQ_HISTORICAL_DATA: Self
pub const FAIL_SEND_CAN_HISTORICAL_DATA: Self
pub const FAIL_SEND_REQ_REAL_TIME_BARS: Self
pub const FAIL_SEND_CAN_REAL_TIME_BARS: Self
pub const FAIL_SEND_REQ_CURRENT_TIME: Self
pub const FAIL_SEND_REQ_POSITIONS: Self
pub const FAIL_SEND_CAN_POSITIONS: Self
pub const FAIL_SEND_REQ_ACCOUNT_DATA: Self
pub const INVALID_SYMBOL: Self
pub const ERROR_ENCODING_PROTOBUF: Self
pub fn from_code(code: i32) -> Option<Self>
Trait Implementations§
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