pub struct Skeleton { /* private fields */ }Expand description
An opaque service to register in the context.
See the general description of the concept skeleton here and the definition in this crate here.
It is constructed with a service object with whichever smart pointer you want.
Depending on use of &mut self in the methods in the service trait, some or all Box<>, Arc<>, Arc<RwLock<>> will implement
IntoSkeleton automatically by the proc macro.
Please see this section for more detail about smart pointers.
Skeleton is useful when you want to erase the trait, and hold it as an opaque service that will be registered later.
Note that you will never need this if you do only plain export & import using ServiceRef, ServiceToExport, or ServiceToImport.
See the module-level documentation to understand when to use this.