pub enum InteractiveBrokersError {
Connection(String),
Authentication(String),
Configuration(String),
Request(String),
Parse(String),
Instrument(String),
Order(String),
MarketData(String),
IbApi(String),
Internal(String),
}Expand description
Errors that can occur in the Interactive Brokers adapter.
Variants§
Connection(String)
Connection error.
Authentication(String)
Authentication error.
Configuration(String)
Invalid configuration.
Request(String)
API request error.
Parse(String)
Response parsing error.
Instrument(String)
Instrument error.
Order(String)
Order error.
MarketData(String)
Market data error.
IbApi(String)
Generic error from rust-ibapi.
Internal(String)
Internal error.
Implementations§
Source§impl InteractiveBrokersError
impl InteractiveBrokersError
Sourcepub const fn kind(&self) -> InteractiveBrokersErrorKind
pub const fn kind(&self) -> InteractiveBrokersErrorKind
Returns the payload-free error kind.
Trait Implementations§
Source§impl Debug for InteractiveBrokersError
impl Debug for InteractiveBrokersError
Source§impl Display for InteractiveBrokersError
impl Display for InteractiveBrokersError
Source§impl Error for InteractiveBrokersError
impl Error for InteractiveBrokersError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for InteractiveBrokersError
impl RefUnwindSafe for InteractiveBrokersError
impl Send for InteractiveBrokersError
impl Sync for InteractiveBrokersError
impl Unpin for InteractiveBrokersError
impl UnsafeUnpin for InteractiveBrokersError
impl UnwindSafe for InteractiveBrokersError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more