Trait SyncComponent
pub trait SyncComponent<L, F = ()>: Componentwhere
L: AppLabel,{
type Target: Bundle
where <Self::Target as DynamicBundle>::Effect: NoBundleEffect;
}Expand description
Trait that links components from the main world with output components in
the sub world. It is used by [SyncComponentPlugin].
The marker type F is only used as a way to bypass the orphan rules. To
implement the trait for a foreign type you can use a local type as the
marker, e.g. the type of the plugin that calls [SyncComponentPlugin].
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".