Trait seabird::proto::seabird::chat_ingest_server::ChatIngest [−][src]
pub trait ChatIngest: Send + Sync + 'static {
type IngestEventsStream: Stream<Item = Result<ChatRequest, Status>> + Send + Sync + 'static;
fn ingest_events<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<ChatEvent>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::IngestEventsStream>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with ChatIngestServer.
Associated Types
type IngestEventsStream: Stream<Item = Result<ChatRequest, Status>> + Send + Sync + 'static
type IngestEventsStream: Stream<Item = Result<ChatRequest, Status>> + Send + Sync + 'static
Server streaming response type for the IngestEvents method.