pub struct SnapshotKernel { /* private fields */ }Implementations§
Source§impl SnapshotKernel
impl SnapshotKernel
pub fn snapshots(&self) -> &SnapshotRegistry
pub fn register_snapshot( &mut self, snapshot: ResolvedSnapshot, ) -> Rc<ResolvedSnapshot>
pub fn initialize_state_from(&mut self, digest: &Digest) -> Result<(), String>
Sourcepub fn load_sessions(
&mut self,
definitions: &[SnapshotSessionDefinition],
secrets: &dyn SecretCatalog,
) -> Result<(), String>
pub fn load_sessions( &mut self, definitions: &[SnapshotSessionDefinition], secrets: &dyn SecretCatalog, ) -> Result<(), String>
Builds all sessions privately and publishes them only after every snapshot, capability, and secret requirement validates.
pub fn session(&self, id: &str) -> Option<Rc<FrozenSession>>
pub fn session_ids(&self) -> impl Iterator<Item = &str>
pub fn state(&self, name: &str) -> Option<&SharedStateCell>
pub fn state_compare_and_set( &mut self, name: &str, expected_revision: u64, value: Value, ) -> Result<bool, String>
Trait Implementations§
Source§impl Default for SnapshotKernel
impl Default for SnapshotKernel
Source§fn default() -> SnapshotKernel
fn default() -> SnapshotKernel
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SnapshotKernel
impl !Send for SnapshotKernel
impl !Sync for SnapshotKernel
impl !UnwindSafe for SnapshotKernel
impl Freeze for SnapshotKernel
impl Unpin for SnapshotKernel
impl UnsafeUnpin for SnapshotKernel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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