pub trait BundleRules {
const DEFAULT_PRIORITY: usize;
// Required method
fn component_rules(
world: &mut World,
registry: &mut ReplicationRegistry,
) -> Vec<ComponentRule>;
}Expand description
Component replication rules associated with a bundle and its priority.
See AppRuleExt::replicate_bundle for more details.
Required Associated Constants§
Sourceconst DEFAULT_PRIORITY: usize
const DEFAULT_PRIORITY: usize
Priority when registered with AppRuleExt::replicate_bundle.
Equals the number of components in a bundle.
Required Methods§
Sourcefn component_rules(
world: &mut World,
registry: &mut ReplicationRegistry,
) -> Vec<ComponentRule>
fn component_rules( world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>
Creates the associated component replication rules and registers their functions in ReplicationRegistry.
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.