pub struct GrimoireLoader { /* private fields */ }Expand description
Loader for Grimoire personas.
Implementations§
Source§impl GrimoireLoader
impl GrimoireLoader
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new loader with the default path.
Uses default_grimoire_path() which checks INFERNUM_GRIMOIRE_PATH
environment variable first, then falls back to XDG data directory.
Sourcepub async fn load(&self, persona_id: &str) -> Result<GrimoirePersona>
pub async fn load(&self, persona_id: &str) -> Result<GrimoirePersona>
Sourcepub fn clear_cache(&self)
pub fn clear_cache(&self)
Clears the cache.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GrimoireLoader
impl Freeze for GrimoireLoader
impl Send for GrimoireLoader
impl Sync for GrimoireLoader
impl Unpin for GrimoireLoader
impl UnsafeUnpin for GrimoireLoader
impl UnwindSafe for GrimoireLoader
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