pub struct Loader<V = WarnOnlyVerifier> { /* private fields */ }Expand description
Filesystem loader for skill packs.
Implementations§
Source§impl<V: Verifier> Loader<V>
impl<V: Verifier> Loader<V>
Sourcepub fn load_metadata(
&self,
root: impl AsRef<Path>,
) -> Result<Manifest, SkillError>
pub fn load_metadata( &self, root: impl AsRef<Path>, ) -> Result<Manifest, SkillError>
Load only manifest metadata.
Sourcepub fn activate(&self, root: impl AsRef<Path>) -> Result<Pack, SkillError>
pub fn activate(&self, root: impl AsRef<Path>) -> Result<Pack, SkillError>
Activate a skill by loading body and inert asset inventory.
Sourcepub fn activate_from_config(
&self,
loader: &ConfigLoader,
) -> Result<Pack, SkillError>
pub fn activate_from_config( &self, loader: &ConfigLoader, ) -> Result<Pack, SkillError>
Activate a skill using canonical rskit-config source resolution.
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for Loader<V>where
V: Freeze,
impl<V> RefUnwindSafe for Loader<V>where
V: RefUnwindSafe,
impl<V> Send for Loader<V>where
V: Send,
impl<V> Sync for Loader<V>where
V: Sync,
impl<V> Unpin for Loader<V>where
V: Unpin,
impl<V> UnsafeUnpin for Loader<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Loader<V>where
V: UnwindSafe,
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