Skip to main content

SessionCatalog

Trait SessionCatalog 

Source
pub trait SessionCatalog:
    Debug
    + Send
    + Sync {
    // Required methods
    fn list_sessions(&self) -> SessionStoreFuture<'_, Vec<SessionCatalogEntry>>;
    fn set_session_name(
        &self,
        session_id: SessionId,
        name: Option<SessionName>,
    ) -> SessionStoreFuture<'_, ()>;
    fn session_name(
        &self,
        session_id: SessionId,
    ) -> SessionStoreFuture<'_, Option<SessionName>>;
}
Expand description

Read/list and display-metadata port kept separate from append semantics.

Required Methods§

Source

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<'_, ()>

Sets or clears one optional display name.

Source

fn session_name( &self, session_id: SessionId, ) -> SessionStoreFuture<'_, Option<SessionName>>

Returns one optional display name.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§