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§
Sourcetype StreamWorkspaceSummaryStream: Stream<Item = Result<WorkspaceSummary, Status>> + Send + 'static
type StreamWorkspaceSummaryStream: Stream<Item = Result<WorkspaceSummary, Status>> + Send + 'static
Server streaming response type for the StreamWorkspaceSummary method.
Sourcetype WatchThreadsStream: Stream<Item = Result<ThreadEvent, Status>> + Send + 'static
type WatchThreadsStream: Stream<Item = Result<ThreadEvent, Status>> + Send + 'static
Server streaming response type for the WatchThreads method.