Skip to main content

ErrorCode

Struct ErrorCode 

Source
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 str

Implementations§

Source§

impl ErrorCode

Source

pub const ALREADY_CONNECTED: Self

Source

pub const CONNECT_FAIL: Self

Source

pub const UPDATE_TWS: Self

Source

pub const NOT_CONNECTED: Self

Source

pub const UNKNOWN_ID: Self

Source

pub const BAD_LENGTH: Self

Source

pub const BAD_MESSAGE: Self

Source

pub const FAIL_SEND_ACCT: Self

Source

pub const FAIL_SEND_EXEC: Self

Source

pub const FAIL_SEND_CORDER: Self

Source

pub const FAIL_SEND_OORDER: Self

Source

pub const FAIL_SEND_REQ_MKT_DEPTH: Self

Source

pub const FAIL_CREATE_SOCK: Self

Source

pub const FAIL_SEND_SERVER_LOG_LEVEL: Self

Source

pub const FAIL_SEND_FA_REQUEST: Self

Source

pub const FAIL_SEND_FA_REPLACE: Self

Source

pub const FAIL_SEND_REQ_SCANNER: Self

Source

pub const FAIL_SEND_CAN_SCANNER: Self

Source

pub const FAIL_SEND_REQ_SCANNER_PARAMETERS: Self

Source

pub const FAIL_SEND_REQ_CALC_IMPLIED_VOLAT: Self

Source

pub const FAIL_SEND_REQ_CALC_OPTION_PRICE: Self

Source

pub const FAIL_SEND_CAN_CALC_IMPLIED_VOLAT: Self

Source

pub const FAIL_SEND_CAN_CALC_OPTION_PRICE: Self

Source

pub const FAIL_SEND_REQ_GLOBAL_CANCEL: Self

Source

pub const FAIL_SEND_REQ_MARKET_DATA_TYPE: Self

Source

pub const FAIL_SEND_CAN_ACCOUNT_DATA: Self

Source

pub const FAIL_SEND_VERIFY_REQUEST: Self

Source

pub const FAIL_SEND_VERIFY_MESSAGE: Self

Source

pub const FAIL_SEND_QUERY_DISPLAY_GROUPS: Self

Source

pub const FAIL_SEND_SUBSCRIBE_TO_GROUP_EVENTS: Self

Source

pub const FAIL_SEND_UPDATE_DISPLAY_GROUP: Self

Source

pub const FAIL_SEND_UNSUBSCRIBE_FROM_GROUP_EVENTS: Self

Source

pub const FAIL_SEND_START_API: Self

Source

pub const FAIL_SEND_VERIFY_AND_AUTH_REQUEST: Self

Source

pub const FAIL_SEND_VERIFY_AND_AUTH_MESSAGE: Self

Source

pub const FAIL_SEND_REQ_POSITIONS_MULTI: Self

Source

pub const FAIL_SEND_CAN_POSITIONS_MULTI: Self

Source

pub const FAIL_SEND_REQ_ACCOUNT_UPDATES_MULTI: Self

Source

pub const FAIL_SEND_CAN_ACCOUNT_UPDATES_MULTI: Self

Source

pub const FAIL_SEND_REQ_SEC_DEF_OPT_PARAMS: Self

Source

pub const FAIL_SEND_REQ_SOFT_DOLLAR_TIERS: Self

Source

pub const FAIL_SEND_REQ_FAMILY_CODES: Self

Source

pub const FAIL_SEND_REQ_MATCHING_SYMBOLS: Self

Source

pub const FAIL_SEND_REQ_MKT_DEPTH_EXCHANGES: Self

Source

pub const FAIL_SEND_REQ_SMART_COMPONENTS: Self

Source

pub const FAIL_SEND_REQ_NEWS_PROVIDERS: Self

Source

pub const FAIL_SEND_REQ_NEWS_ARTICLE: Self

Source

pub const FAIL_SEND_REQ_HISTORICAL_NEWS: Self

Source

pub const FAIL_SEND_REQ_HEAD_TIMESTAMP: Self

Source

pub const FAIL_SEND_REQ_HISTOGRAM_DATA: Self

Source

pub const FAIL_SEND_CANCEL_HISTOGRAM_DATA: Self

Source

pub const FAIL_SEND_CANCEL_HEAD_TIMESTAMP: Self

Source

pub const FAIL_SEND_REQ_MARKET_RULE: Self

Source

pub const FAIL_SEND_REQ_PNL: Self

Source

pub const FAIL_SEND_CANCEL_PNL: Self

Source

pub const FAIL_SEND_REQ_PNL_SINGLE: Self

Source

pub const FAIL_SEND_CANCEL_PNL_SINGLE: Self

Source

pub const FAIL_SEND_REQ_HISTORICAL_TICKS: Self

Source

pub const FAIL_SEND_REQ_TICK_BY_TICK_DATA: Self

Source

pub const FAIL_SEND_CANCEL_TICK_BY_TICK_DATA: Self

Source

pub const FAIL_SEND_REQ_COMPLETED_ORDERS: Self

Source

pub const FAIL_SEND_REQ_WSH_META_DATA: Self

Source

pub const FAIL_SEND_CAN_WSH_META_DATA: Self

Source

pub const FAIL_SEND_REQ_WSH_EVENT_DATA: Self

Source

pub const FAIL_SEND_CAN_WSH_EVENT_DATA: Self

Source

pub const FAIL_SEND_REQ_USER_INFO: Self

Source

pub const FA_PROFILE_NOT_SUPPORTED: Self

Source

pub const FAIL_SEND_REQ_CURRENT_TIME_IN_MILLIS: Self

Source

pub const FAIL_SEND_CAN_MKT_DEPTH: Self

Source

pub const FAIL_SEND_CANCEL_CONTRACT_DATA: Self

Source

pub const FAIL_SEND_CANCEL_HISTORICAL_TICKS: Self

Source

pub const FAIL_SEND_REQ_CONFIG: Self

Source

pub const FAIL_SEND_UPDATE_CONFIG: Self

Source

pub const FAIL_SEND_REQ_MKT_DATA: Self

Source

pub const FAIL_SEND_CAN_MKT_DATA: Self

Source

pub const FAIL_SEND_ORDER: Self

Source

pub const FAIL_SEND_CANCEL_ORDER: Self = Self::FAIL_SEND_CORDER

Source

pub const FAIL_SEND_REQ_CONTRACT_DATA: Self

Source

pub const FAIL_SEND_REQ_HISTORICAL_DATA: Self

Source

pub const FAIL_SEND_CAN_HISTORICAL_DATA: Self

Source

pub const FAIL_SEND_REQ_REAL_TIME_BARS: Self

Source

pub const FAIL_SEND_CAN_REAL_TIME_BARS: Self

Source

pub const FAIL_SEND_REQ_CURRENT_TIME: Self

Source

pub const FAIL_SEND_REQ_POSITIONS: Self

Source

pub const FAIL_SEND_CAN_POSITIONS: Self

Source

pub const FAIL_SEND_REQ_ACCOUNT_DATA: Self

Source

pub const INVALID_SYMBOL: Self

Source

pub const ERROR_ENCODING_PROTOBUF: Self

Source

pub const ALL: &[Self]

Common client-side errors from the official Python error catalog.

Source

pub fn from_code(code: i32) -> Option<Self>

Trait Implementations§

Source§

impl Clone for ErrorCode

Source§

fn clone(&self) -> ErrorCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ErrorCode

Source§

impl Debug for ErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ErrorCode

Source§

impl PartialEq for ErrorCode

Source§

fn eq(&self, other: &ErrorCode) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.