pub trait WorkspaceBackend: Send + Sync {
// Required methods
fn get_current_task(
&self,
session_id: Option<&str>,
) -> impl Future<Output = Result<CurrentTaskResponse>> + Send;
fn set_current_task(
&self,
task_id: i64,
session_id: Option<&str>,
) -> impl Future<Output = Result<CurrentTaskResponse>> + Send;
fn clear_current_task(
&self,
session_id: Option<&str>,
) -> impl Future<Output = Result<()>> + Send;
}Expand description
Session/workspace focus management.
Required Methods§
fn get_current_task( &self, session_id: Option<&str>, ) -> impl Future<Output = Result<CurrentTaskResponse>> + Send
fn set_current_task( &self, task_id: i64, session_id: Option<&str>, ) -> impl Future<Output = Result<CurrentTaskResponse>> + Send
fn clear_current_task( &self, session_id: Option<&str>, ) -> impl Future<Output = Result<()>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.