pub struct ConcreteComponentRegistration {
pub type_name: &'static str,
pub package: ComponentPackage,
pub serialize_fn: SerializeFn,
pub restore_fn: RestoreFn,
pub construct_fn: ConstructFn,
pub dependencies: &'static [DependencyDecl],
}Expand description
Inventory entry for a concrete component, keyed by TYPE_NAME.
Fields§
§type_name: &'static strConcreteComponent::TYPE_NAME.
package: ComponentPackagePackage origin.
serialize_fn: SerializeFnMonomorphized T::serialize.
restore_fn: RestoreFnMonomorphized T::restore.
construct_fn: ConstructFnDowncasts &dyn Any → &T::Config then calls T::new.
dependencies: &'static [DependencyDecl]Mirror of ConcreteComponent::DEPENDENCIES.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConcreteComponentRegistration
impl RefUnwindSafe for ConcreteComponentRegistration
impl Send for ConcreteComponentRegistration
impl Sync for ConcreteComponentRegistration
impl Unpin for ConcreteComponentRegistration
impl UnsafeUnpin for ConcreteComponentRegistration
impl UnwindSafe for ConcreteComponentRegistration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more