Trait CalendarSource
pub trait CalendarSource: Send + Sync {
// Required method
fn calendars(&self) -> Result<Vec<CalendarSpec>, SourceError>;
}Expand description
A source of business calendars — a session input, ingested with
ingest_calendars before any
trade that should roll on them is drafted.
Required Methods§
fn calendars(&self) -> Result<Vec<CalendarSpec>, SourceError>
fn calendars(&self) -> Result<Vec<CalendarSpec>, SourceError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".