Skip to main content

ThreadWorkflowService

Trait ThreadWorkflowService 

Source
pub trait ThreadWorkflowService:
    Send
    + Sync
    + 'static {
    type StreamWorkspaceSummaryStream: Stream<Item = Result<WorkspaceSummary, Status>> + Send + 'static;
    type WatchThreadsStream: Stream<Item = Result<ThreadEvent, Status>> + Send + 'static;

    // Required methods
    fn start_thread<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StartThreadRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ThreadSummary>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_threads<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListThreadsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListThreadsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_workspace_summary<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetWorkspaceSummaryRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<WorkspaceSummary>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn stream_workspace_summary<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetWorkspaceSummaryRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamWorkspaceSummaryStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_thread<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetThreadRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ThreadSummary>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn capture_thread<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CaptureThreadRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CaptureThreadResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn complete_thread<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CompleteThreadRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ThreadSummary>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn watch_threads<'life0, 'async_trait>(
        &'life0 self,
        request: Request<WatchThreadsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::WatchThreadsStream>, 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 ThreadWorkflowServiceServer.

Required Associated Types§

Source

type StreamWorkspaceSummaryStream: Stream<Item = Result<WorkspaceSummary, Status>> + Send + 'static

Server streaming response type for the StreamWorkspaceSummary method.

Source

type WatchThreadsStream: Stream<Item = Result<ThreadEvent, Status>> + Send + 'static

Server streaming response type for the WatchThreads method.

Required Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§