pub struct SoulStateStore { /* private fields */ }Expand description
Small persistence helper for soul lifecycle state.
Implementations§
Source§impl SoulStateStore
impl SoulStateStore
Sourcepub fn new(workspace: impl AsRef<Path>) -> Self
pub fn new(workspace: impl AsRef<Path>) -> Self
Create a state store under <workspace>/.agent-diva/soul-state.json.
Sourcepub fn is_bootstrap_completed(&self) -> bool
pub fn is_bootstrap_completed(&self) -> bool
Returns true if bootstrap completion was already recorded.
Sourcepub fn mark_bootstrap_seeded(&self) -> Result<()>
pub fn mark_bootstrap_seeded(&self) -> Result<()>
Mark bootstrap as seeded once.
Sourcepub fn mark_bootstrap_completed(&self) -> Result<()>
pub fn mark_bootstrap_completed(&self) -> Result<()>
Mark bootstrap as completed.
Auto Trait Implementations§
impl Freeze for SoulStateStore
impl RefUnwindSafe for SoulStateStore
impl Send for SoulStateStore
impl Sync for SoulStateStore
impl Unpin for SoulStateStore
impl UnsafeUnpin for SoulStateStore
impl UnwindSafe for SoulStateStore
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