pub struct InMemorySessionStore { /* private fields */ }Expand description
In-memory semantic reference implementation of SessionStore.
All append validation and materialization is shared with durable stores via
crate::apply_transaction.
Implementations§
Trait Implementations§
Source§impl Debug for InMemorySessionStore
impl Debug for InMemorySessionStore
Source§impl Default for InMemorySessionStore
impl Default for InMemorySessionStore
Source§fn default() -> InMemorySessionStore
fn default() -> InMemorySessionStore
Returns the “default value” for a type. Read more
Source§impl SessionCatalog for InMemorySessionStore
impl SessionCatalog for InMemorySessionStore
Source§fn list_sessions(&self) -> SessionStoreFuture<'_, Vec<SessionCatalogEntry>>
fn list_sessions(&self) -> SessionStoreFuture<'_, Vec<SessionCatalogEntry>>
Lists sessions ordered by latest durable timestamp descending, then ID.
Source§fn set_session_name(
&self,
session_id: SessionId,
name: Option<SessionName>,
) -> SessionStoreFuture<'_, ()>
fn set_session_name( &self, session_id: SessionId, name: Option<SessionName>, ) -> SessionStoreFuture<'_, ()>
Sets or clears one optional display name.
Source§fn session_name(
&self,
session_id: SessionId,
) -> SessionStoreFuture<'_, Option<SessionName>>
fn session_name( &self, session_id: SessionId, ) -> SessionStoreFuture<'_, Option<SessionName>>
Returns one optional display name.
Source§impl SessionStore for InMemorySessionStore
impl SessionStore for InMemorySessionStore
Source§fn load(&self, session_id: SessionId) -> SessionStoreFuture<'_, SessionSnapshot>
fn load(&self, session_id: SessionId) -> SessionStoreFuture<'_, SessionSnapshot>
Loads one immutable session snapshot.
Source§fn append(
&self,
transaction: AppendTransaction,
) -> SessionStoreFuture<'_, AppendOutcome>
fn append( &self, transaction: AppendTransaction, ) -> SessionStoreFuture<'_, AppendOutcome>
Atomically validates and appends one transaction.
Source§fn active_grants_for_actor(
&self,
actor_id: ActorId,
) -> SessionStoreFuture<'_, Vec<PolicyGrant>>
fn active_grants_for_actor( &self, actor_id: ActorId, ) -> SessionStoreFuture<'_, Vec<PolicyGrant>>
Returns non-revoked grant candidates issued to one actor across sessions.
Auto Trait Implementations§
impl !Freeze for InMemorySessionStore
impl RefUnwindSafe for InMemorySessionStore
impl Send for InMemorySessionStore
impl Sync for InMemorySessionStore
impl Unpin for InMemorySessionStore
impl UnsafeUnpin for InMemorySessionStore
impl UnwindSafe for InMemorySessionStore
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