Skip to main content

ProviderSyncAdapter

Trait ProviderSyncAdapter 

Source
pub trait ProviderSyncAdapter: Send + Sync {
    // Required methods
    fn provider_type(&self) -> ProviderType;
    fn push_session(&self, session: &ChatSession) -> Result<()>;
    fn pull_session(&self, session_id: &str) -> Result<Option<ChatSession>>;
    fn list_remote_sessions(&self) -> Result<Vec<String>>;
    fn delete_remote_session(&self, session_id: &str) -> Result<()>;
}
Expand description

Trait for provider-specific sync operations

Required Methods§

Implementors§