pub struct SessionService { /* private fields */ }Expand description
Session service for unified session management
Implementations§
Source§impl SessionService
impl SessionService
Sourcepub fn with_registry(registry: ConnectorRegistry) -> Self
pub fn with_registry(registry: ConnectorRegistry) -> Self
Create session service with custom registry
Sourcepub fn registry(&self) -> &ConnectorRegistry
pub fn registry(&self) -> &ConnectorRegistry
Get the connector registry
Sourcepub fn detect_sources(&self) -> Vec<SourceInfo>
pub fn detect_sources(&self) -> Vec<SourceInfo>
Detect available session sources
Sourcepub async fn import_from(
&self,
source_id: &str,
options: &ImportOptions,
) -> Result<Vec<Session>>
pub async fn import_from( &self, source_id: &str, options: &ImportOptions, ) -> Result<Vec<Session>>
Import sessions from a specific source
Sourcepub async fn import_all(&self, options: &ImportOptions) -> Result<Vec<Session>>
pub async fn import_all(&self, options: &ImportOptions) -> Result<Vec<Session>>
Import sessions from all available sources
Sourcepub async fn list_sessions(&self) -> Vec<Session>
pub async fn list_sessions(&self) -> Vec<Session>
List all cached sessions
Sourcepub async fn get_session(&self, id: &SessionId) -> Option<Session>
pub async fn get_session(&self, id: &SessionId) -> Option<Session>
Get a session by ID
Sourcepub async fn sessions_by_source(&self, source: &str) -> Vec<Session>
pub async fn sessions_by_source(&self, source: &str) -> Vec<Session>
Get sessions by source
Sourcepub async fn session_count(&self) -> usize
pub async fn session_count(&self) -> usize
Get session count
Sourcepub async fn clear_cache(&self)
pub async fn clear_cache(&self)
Clear the session cache
Sourcepub async fn statistics(&self) -> SessionStatistics
pub async fn statistics(&self) -> SessionStatistics
Get summary statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SessionService
impl !RefUnwindSafe for SessionService
impl Send for SessionService
impl Sync for SessionService
impl Unpin for SessionService
impl !UnwindSafe for SessionService
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