[−][src]Enum trade::api::errors::RestErrorKind
REST error kind.
Variants
TooManyRequests
Too many requests were sent during a given time window, check rate limits.
UnknownStatus
Execution status are unknown: e.g. timeout.
InvalidRequest
Invalid request, issue on the lib side or consumer side.
OtherSide
Issue on the exchange side.
OutsideTimeWindow
The request timestamp was outside of the specified time window.
Specific(K)
More specific error kind, depending on the request being made.
Trait Implementations
impl<K: PartialEq + ErrorKind> PartialEq<RestErrorKind<K>> for RestErrorKind<K>
[src]
impl<K: PartialEq + ErrorKind> PartialEq<RestErrorKind<K>> for RestErrorKind<K>
fn eq(&self, other: &RestErrorKind<K>) -> bool
[src]
fn eq(&self, other: &RestErrorKind<K>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RestErrorKind<K>) -> bool
[src]
fn ne(&self, other: &RestErrorKind<K>) -> bool
This method tests for !=
.
impl<K: ErrorKind> From<RestErrorKind<K>> for RestError<K>
[src]
impl<K: ErrorKind> From<RestErrorKind<K>> for RestError<K>
fn from(kind: RestErrorKind<K>) -> RestError<K>
[src]
fn from(kind: RestErrorKind<K>) -> RestError<K>
Performs the conversion.
impl From<RestErrorKind<!>> for RestErrorKind<CancelErrorKind>
[src]
impl From<RestErrorKind<!>> for RestErrorKind<CancelErrorKind>
fn from(err: RestErrorKind<!>) -> RestErrorKind<CancelErrorKind>
[src]
fn from(err: RestErrorKind<!>) -> RestErrorKind<CancelErrorKind>
Performs the conversion.
impl From<RestErrorKind<!>> for RestErrorKind<OrderErrorKind>
[src]
impl From<RestErrorKind<!>> for RestErrorKind<OrderErrorKind>
fn from(err: RestErrorKind<!>) -> RestErrorKind<OrderErrorKind>
[src]
fn from(err: RestErrorKind<!>) -> RestErrorKind<OrderErrorKind>
Performs the conversion.
impl<K: Clone + ErrorKind> Clone for RestErrorKind<K>
[src]
impl<K: Clone + ErrorKind> Clone for RestErrorKind<K>
fn clone(&self) -> RestErrorKind<K>
[src]
fn clone(&self) -> RestErrorKind<K>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<K: Copy + ErrorKind> Copy for RestErrorKind<K>
[src]
impl<K: Copy + ErrorKind> Copy for RestErrorKind<K>
impl<K: Eq + ErrorKind> Eq for RestErrorKind<K>
[src]
impl<K: Eq + ErrorKind> Eq for RestErrorKind<K>
impl<K: Debug + ErrorKind> Debug for RestErrorKind<K>
[src]
impl<K: Debug + ErrorKind> Debug for RestErrorKind<K>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<K: ErrorKind> Display for RestErrorKind<K>
[src]
impl<K: ErrorKind> Display for RestErrorKind<K>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<K: Hash + ErrorKind> Hash for RestErrorKind<K>
[src]
impl<K: Hash + ErrorKind> Hash for RestErrorKind<K>
fn hash<__HK: Hasher>(&self, state: &mut __HK)
[src]
fn hash<__HK: Hasher>(&self, state: &mut __HK)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<K: ErrorKind> Fail for RestErrorKind<K>
[src]
impl<K: ErrorKind> Fail for RestErrorKind<K>
fn cause(&self) -> Option<&dyn Fail>
[src]
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
fn compat(self) -> Compat<Self>
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
Auto Trait Implementations
impl<K> Send for RestErrorKind<K>
impl<K> Send for RestErrorKind<K>
impl<K> Sync for RestErrorKind<K>
impl<K> Sync for RestErrorKind<K>
Blanket Implementations
impl<T> IntoTimestamped for T
[src]
impl<T> IntoTimestamped for T
fn timestamped(self) -> Timestamped<Self>
[src]
fn timestamped(self) -> Timestamped<Self>
Add the current timestamp to self
.
fn with_timestamp(self, timestamp: Timestamp) -> Timestamped<Self>
[src]
fn with_timestamp(self, timestamp: Timestamp) -> Timestamped<Self>
Add the given timestamp
to self
.
impl<T> IntoWithSymbol for T
[src]
impl<T> IntoWithSymbol for T
fn with_symbol(&self, symbol: Symbol) -> WithSymbol<&Self>
[src]
fn with_symbol(&self, symbol: Symbol) -> WithSymbol<&Self>
Add the given symbol
to a borrowed &self
.
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> Erased for T
impl<T> Erased for T
impl<T> AsFail for T where
T: Fail,
[src]
impl<T> AsFail for T where
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
[src]
fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
[src]
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
fn cause(&self) -> Option<&(dyn Fail + 'static)>
[src]
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
fn compat(self) -> Compat<Self>
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
impl<T> Erased for T
impl<T> Erased for T