pub trait ResourceBindings<'r>: Sized {
// Required method
fn from_bindings(
manager: &'r mut ResourceManager,
mapping: Option<&ResourceMapping>,
) -> Result<Self, CuError>;
}Expand description
Trait implemented by resource binding structs passed to task/bridge
constructors. Implementors pull the concrete resources they need from the
ResourceManager, using the symbolic mapping provided in the Copper config
(resources: { name: "bundle.resource" }).
Required Methods§
fn from_bindings( manager: &'r mut ResourceManager, mapping: Option<&ResourceMapping>, ) -> Result<Self, 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.