Skip to main content

WorkspaceManager

Trait WorkspaceManager 

Source
pub trait WorkspaceManager:
    Send
    + Sync
    + Debug {
    // Required methods
    fn resolve_workspace<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 Path,
    ) -> Pin<Box<dyn Future<Output = WorkspaceManagerResult<WorkspaceInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn create_workspace<'life0, 'async_trait>(
        &'life0 self,
        request: CreateWorkspaceRequest,
    ) -> Pin<Box<dyn Future<Output = WorkspaceManagerResult<WorkspaceInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_workspaces<'life0, 'async_trait>(
        &'life0 self,
        request: ListWorkspacesRequest,
    ) -> Pin<Box<dyn Future<Output = WorkspaceManagerResult<Vec<WorkspaceInfo>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn open_workspace<'life0, 'async_trait>(
        &'life0 self,
        workspace_id: WorkspaceId,
    ) -> Pin<Box<dyn Future<Output = WorkspaceManagerResult<Arc<dyn Workspace>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_workspace_status<'life0, 'async_trait>(
        &'life0 self,
        workspace_id: WorkspaceId,
    ) -> Pin<Box<dyn Future<Output = WorkspaceManagerResult<WorkspaceStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_workspace<'life0, 'async_trait>(
        &'life0 self,
        request: DeleteWorkspaceRequest,
    ) -> Pin<Box<dyn Future<Output = WorkspaceManagerResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn resolve_workspace<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 Path, ) -> Pin<Box<dyn Future<Output = WorkspaceManagerResult<WorkspaceInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn create_workspace<'life0, 'async_trait>( &'life0 self, request: CreateWorkspaceRequest, ) -> Pin<Box<dyn Future<Output = WorkspaceManagerResult<WorkspaceInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_workspaces<'life0, 'async_trait>( &'life0 self, request: ListWorkspacesRequest, ) -> Pin<Box<dyn Future<Output = WorkspaceManagerResult<Vec<WorkspaceInfo>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn open_workspace<'life0, 'async_trait>( &'life0 self, workspace_id: WorkspaceId, ) -> Pin<Box<dyn Future<Output = WorkspaceManagerResult<Arc<dyn Workspace>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_workspace_status<'life0, 'async_trait>( &'life0 self, workspace_id: WorkspaceId, ) -> Pin<Box<dyn Future<Output = WorkspaceManagerResult<WorkspaceStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_workspace<'life0, 'async_trait>( &'life0 self, request: DeleteWorkspaceRequest, ) -> Pin<Box<dyn Future<Output = WorkspaceManagerResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§