pub enum CalendarError {
DateOutOfRange(NaiveDate),
InvalidTime(String),
NoTradingDayFound,
InvalidDateCalculation(String),
InvalidConfiguration(String),
InvalidSession,
}Expand description
Errors that can occur when using the trading calendar
Variants§
DateOutOfRange(NaiveDate)
Date is outside the supported range
InvalidTime(String)
Invalid time provided
NoTradingDayFound
No trading day found within search period
InvalidDateCalculation(String)
Invalid date calculation
InvalidConfiguration(String)
Invalid configuration
InvalidSession
Invalid session times
Trait Implementations§
Source§impl Debug for CalendarError
impl Debug for CalendarError
Source§impl Display for CalendarError
impl Display for CalendarError
Source§impl Error for CalendarError
impl Error for CalendarError
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 CalendarError
impl RefUnwindSafe for CalendarError
impl Send for CalendarError
impl Sync for CalendarError
impl Unpin for CalendarError
impl UnwindSafe for CalendarError
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