Trait Session

Source
pub trait Session:
    Send
    + Sync
    + 'static {
    // Required methods
    fn access_workspace<'life0, 'async_trait>(
        &'life0 self,
        request: Request<WorkspaceRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Token>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_workspace<'life0, 'async_trait>(
        &'life0 self,
        request: Request<WorkspaceRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_workspace<'life0, 'async_trait>(
        &'life0 self,
        request: Request<WorkspaceRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_workspaces<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Empty>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<WorkspaceList>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn invite_to_workspace<'life0, 'async_trait>(
        &'life0 self,
        request: Request<InviteRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with SessionServer.

Required Methods§

Source

fn access_workspace<'life0, 'async_trait>( &'life0 self, request: Request<WorkspaceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Token>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handle a workspace access request and return a workspace token.

Source

fn create_workspace<'life0, 'async_trait>( &'life0 self, request: Request<WorkspaceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a workspace.

Source

fn delete_workspace<'life0, 'async_trait>( &'life0 self, request: Request<WorkspaceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete a workspace.

Source

fn list_workspaces<'life0, 'async_trait>( &'life0 self, request: Request<Empty>, ) -> Pin<Box<dyn Future<Output = Result<Response<WorkspaceList>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List all available workspaces.

Source

fn invite_to_workspace<'life0, 'async_trait>( &'life0 self, request: Request<InviteRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handle a workspace invite request.

Implementors§