Skip to main content

CalendarSource

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>

Every calendar the source holds.

§Errors

SourceError where the source itself failed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§