pub enum HistoricalParseError {
BarSize(String),
Duration(String, String),
WhatToShow(String),
ParseIntError(String, ParseIntError),
}Expand description
Errors surfaced while parsing historical market data parameters.
Variants§
BarSize(String)
Unsupported bar size string supplied by the caller.
Duration(String, String)
Invalid duration string or unsupported unit.
WhatToShow(String)
Unsupported what_to_show value.
ParseIntError(String, ParseIntError)
Wrapper for integer parsing errors when reading duration values.
Trait Implementations§
Source§impl Debug for HistoricalParseError
impl Debug for HistoricalParseError
Source§impl Display for HistoricalParseError
impl Display for HistoricalParseError
Source§impl Error for HistoricalParseError
impl Error for HistoricalParseError
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 PartialEq for HistoricalParseError
impl PartialEq for HistoricalParseError
impl StructuralPartialEq for HistoricalParseError
Auto Trait Implementations§
impl Freeze for HistoricalParseError
impl RefUnwindSafe for HistoricalParseError
impl Send for HistoricalParseError
impl Sync for HistoricalParseError
impl Unpin for HistoricalParseError
impl UnwindSafe for HistoricalParseError
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