pub struct SessionSnapshot { /* private fields */ }Expand description
Complete immutable read view of one stored session.
Implementations§
Source§impl SessionSnapshot
impl SessionSnapshot
Sourcepub fn records(&self) -> &[RecordEnvelope]
pub fn records(&self) -> &[RecordEnvelope]
Returns canonical source records in authoritative sequence order.
Sourcepub const fn state(&self) -> &MaterializedSessionState
pub const fn state(&self) -> &MaterializedSessionState
Returns current rebuildable projection.
Sourcepub fn approval_artifacts(&self) -> &[ApprovalArtifactEntry]
pub fn approval_artifacts(&self) -> &[ApprovalArtifactEntry]
Returns append-only rich approval artifacts.
Sourcepub fn grant_journal(&self) -> &[GrantJournalEntry]
pub fn grant_journal(&self) -> &[GrantJournalEntry]
Returns append-only grant history.
Sourcepub const fn journal_revision(&self) -> u64
pub const fn journal_revision(&self) -> u64
Returns current typed side-journal revision.
Sourcepub fn active_grants(&self) -> &[PolicyGrant]
pub fn active_grants(&self) -> &[PolicyGrant]
Returns currently non-revoked grant candidates in stable grant-ID order.
Trait Implementations§
Source§impl Clone for SessionSnapshot
impl Clone for SessionSnapshot
Source§fn clone(&self) -> SessionSnapshot
fn clone(&self) -> SessionSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionSnapshot
impl Debug for SessionSnapshot
Source§impl PartialEq for SessionSnapshot
impl PartialEq for SessionSnapshot
impl StructuralPartialEq for SessionSnapshot
Auto Trait Implementations§
impl Freeze for SessionSnapshot
impl RefUnwindSafe for SessionSnapshot
impl Send for SessionSnapshot
impl Sync for SessionSnapshot
impl Unpin for SessionSnapshot
impl UnsafeUnpin for SessionSnapshot
impl UnwindSafe for SessionSnapshot
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