pub enum IndexError {
ExchangeIndex(String),
AssetIndex(String),
InstrumentIndex(String),
}Expand description
Represents all possible errors that can occur when searching for indexes in an
IndexedInstruments collection.
Variants§
ExchangeIndex(String)
Indicates a failure to find an ExchangeIndex for a
given exchange identifier.
Contains a description of the failed lookup attempt.
AssetIndex(String)
Indicates a failure to find an AssetIndex for a given
asset identifier.
Contains a description of the failed lookup attempt.
InstrumentIndex(String)
Indicates a failure to find an InstrumentIndex
for a given instrument identifier.
Contains a description of the failed lookup attempt.
Trait Implementations§
Source§impl Clone for IndexError
impl Clone for IndexError
Source§fn clone(&self) -> IndexError
fn clone(&self) -> IndexError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexError
impl Debug for IndexError
Source§impl<'de> Deserialize<'de> for IndexError
impl<'de> Deserialize<'de> for IndexError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for IndexError
impl Display for IndexError
Source§impl Error for IndexError
impl Error for IndexError
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()
Source§impl Hash for IndexError
impl Hash for IndexError
Source§impl Ord for IndexError
impl Ord for IndexError
Source§fn cmp(&self, other: &IndexError) -> Ordering
fn cmp(&self, other: &IndexError) -> Ordering
1.21.0 · 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
Source§impl PartialEq for IndexError
impl PartialEq for IndexError
Source§impl PartialOrd for IndexError
impl PartialOrd for IndexError
Source§impl Serialize for IndexError
impl Serialize for IndexError
impl Eq for IndexError
impl StructuralPartialEq for IndexError
Auto Trait Implementations§
impl Freeze for IndexError
impl RefUnwindSafe for IndexError
impl Send for IndexError
impl Sync for IndexError
impl Unpin for IndexError
impl UnwindSafe for IndexError
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