ResourceBundle

Trait ResourceBundle 

Source
pub trait ResourceBundle {
    // Required method
    fn build(
        bundle_id: &str,
        config: Option<&ComponentConfig>,
        resources: &[ResourceDecl],
        manager: &mut ResourceManager,
    ) -> Result<(), CuError>;
}
Expand description

Bundle providers implement this trait to populate the ResourceManager with concrete resources for a given bundle id.

Required Methods§

Source

fn build( bundle_id: &str, config: Option<&ComponentConfig>, resources: &[ResourceDecl], manager: &mut ResourceManager, ) -> Result<(), CuError>

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§

Source§

impl ResourceBundle for ThreadPoolBundle

Available on crate feature std only.