pub struct ChartInfo {
pub version: ChartVersion,
pub chart_type: Option<String>,
pub ir: Chart,
pub compiled: CompiledChart,
pub vt_send_types: BTreeSet<String>,
pub defers: BTreeMap<StateIdx, Vec<String>>,
pub unhandled: Option<UnhandledPolicy>,
}Expand description
A registered chart version: the IR as written, the compiled lowered chart and what the
runtime reads from its vt: extensions.
Fields§
§version: ChartVersionThe version IRI (content address of ChartInfo::ir).
chart_type: Option<String>The chart type this version was registered under, if any.
ir: ChartThe chart as written.
compiled: CompiledChartThe lowered, compiled chart that runs.
vt_send_types: BTreeSet<String>The vt: send types the lowering introduced.
defers: BTreeMap<StateIdx, Vec<String>>vt:defer descriptors per state index.
unhandled: Option<UnhandledPolicy>The declared vt:unhandled policy.
Implementations§
Source§impl ChartInfo
impl ChartInfo
Sourcepub fn deferred(&self, session: &Session) -> Vec<String>
pub fn deferred(&self, session: &Session) -> Vec<String>
The event descriptors deferred by the states active in session.
Sourcepub fn restart_policy(&self, state: &str, index: usize) -> RestartPolicy
pub fn restart_policy(&self, state: &str, index: usize) -> RestartPolicy
The vt:restart policy of the index-th <invoke> of state state.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ChartInfo
impl Freeze for ChartInfo
impl Move for ChartInfo
impl RefUnwindSafe for ChartInfo
impl Send for ChartInfo
impl Sync for ChartInfo
impl Unpin for ChartInfo
impl UnsafeUnpin for ChartInfo
impl UnwindSafe for ChartInfo
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