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§
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.