pub struct StateStore { /* private fields */ }Implementations§
Source§impl StateStore
impl StateStore
pub async fn bootstrap(root: impl AsRef<Path>) -> KernelResult<Self>
pub fn pool(&self) -> SqlitePool
pub fn paths(&self) -> &StatePaths
pub async fn actor_exists(&self, actor_id: &str) -> KernelResult<bool>
pub async fn run_startup_integrity_checks(&self) -> KernelResult<()>
Sourcepub async fn set_policy_version(&self, version: &str) -> KernelResult<()>
pub async fn set_policy_version(&self, version: &str) -> KernelResult<()>
Records a governance policy version change in system_meta.
Called by the kernel whenever a system/policy Create event is committed.
Auto Trait Implementations§
impl Freeze for StateStore
impl !RefUnwindSafe for StateStore
impl Send for StateStore
impl Sync for StateStore
impl Unpin for StateStore
impl UnsafeUnpin for StateStore
impl !UnwindSafe for StateStore
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more