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§
Sourcefn list_sessions(&self) -> SessionStoreFuture<'_, Vec<SessionCatalogEntry>>
fn list_sessions(&self) -> SessionStoreFuture<'_, Vec<SessionCatalogEntry>>
Lists sessions ordered by latest durable timestamp descending, then ID.
Sourcefn 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.
Sourcefn session_name(
&self,
session_id: SessionId,
) -> SessionStoreFuture<'_, Option<SessionName>>
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".