pub struct SkillEntry {
pub factory: fn() -> Arc<dyn Skill>,
}Expand description
inventory slot for compile-time skill registration via #[skill].
Macro-generated skills inventory::submit! a SkillEntry here so that
harness::skills::all() can enumerate them at runtime without any IoC container.
Fields§
§factory: fn() -> Arc<dyn Skill>Trait Implementations§
impl Collect for SkillEntry
Auto Trait Implementations§
impl Freeze for SkillEntry
impl RefUnwindSafe for SkillEntry
impl Send for SkillEntry
impl Sync for SkillEntry
impl Unpin for SkillEntry
impl UnsafeUnpin for SkillEntry
impl UnwindSafe for SkillEntry
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