Skip to main content

ResourceBundle

Trait ResourceBundle 

Source
pub trait ResourceBundle: ResourceBundleDecl + Sized {
    const INPUT_NAMES: &'static [&'static str] = _;

    // Required method
    fn build(
        bundle: BundleContext<Self>,
        config: Option<&ComponentConfig>,
        manager: &mut ResourceManager,
    ) -> CuResult<()>;
}
Expand description

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

Provided Associated Constants§

Source

const INPUT_NAMES: &'static [&'static str] = _

Dependencies consumed during construction. Existing bundles have none.

Required Methods§

Source

fn build( bundle: BundleContext<Self>, config: Option<&ComponentConfig>, manager: &mut ResourceManager, ) -> CuResult<()>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§