#[non_exhaustive]pub enum StaticSessionExceptionsError {
CoverageBoundsInverted,
DatesNotStrictlyIncreasing {
index: usize,
},
RecordOutsideCoverage {
index: usize,
},
EmptyReplacement {
index: usize,
},
BlockOffsetOutOfRange {
index: usize,
block: usize,
open_day_offset: i8,
},
BlockOpenOutOfRange {
index: usize,
block: usize,
open_ssm: u32,
},
BlockCloseOutOfRange {
index: usize,
block: usize,
close_ssm: u32,
},
BlockClosesAfterTradeDate {
index: usize,
block: usize,
},
BlocksNotOrdered {
index: usize,
block: usize,
},
}Expand description
A StaticSessionExceptions record-set invariant violation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CoverageBoundsInverted
The last covered trade date precedes the first.
DatesNotStrictlyIncreasing
The record at index is not later than its predecessor.
RecordOutsideCoverage
The record at index falls outside the published coverage window.
EmptyReplacement
The replacement at index carries no blocks; use a closed record.
BlockOffsetOutOfRange
A block’s opening-day offset is outside the permitted range.
Fields
BlockOpenOutOfRange
A block’s open is outside 0..86_400.
Fields
BlockCloseOutOfRange
A block’s close is outside 0..=86_400.
Fields
BlockClosesAfterTradeDate
A block opening on its trade date closes on the following local date.
A trade date is named by the local date of its final close, so a block
at offset 0 may not wrap. A span covering one whole local day is
stated as open_ssm = 0, close_ssm = 86_400, which does not wrap.
Fields
BlocksNotOrdered
A block does not start at or after its predecessor.
Trait Implementations§
Source§impl Clone for StaticSessionExceptionsError
impl Clone for StaticSessionExceptionsError
impl Copy for StaticSessionExceptionsError
Source§impl Debug for StaticSessionExceptionsError
impl Debug for StaticSessionExceptionsError
impl Eq for StaticSessionExceptionsError
Source§impl Error for StaticSessionExceptionsError
impl Error for StaticSessionExceptionsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()