Skip to main content

ProgramMeta

Trait ProgramMeta 

Source
pub trait ProgramMeta {
    const NUM_CHANNELS: usize;
    const NUM_EVENT_FLAGS: usize;
    const NUM_STATE_SETS: usize;

    // Required methods
    fn channel_defs() -> Vec<ChannelDef>;
    fn event_flag_sync_map() -> Vec<Vec<usize>>;
}
Expand description

Static program metadata provided by generated code.

Required Associated Constants§

Required Methods§

Source

fn channel_defs() -> Vec<ChannelDef>

Source

fn event_flag_sync_map() -> Vec<Vec<usize>>

Maps event flag id → list of synced channel ids.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§