pub trait ConnectorService:
Send
+ Sync
+ 'static {
type SinkWriterStreamStream: Stream<Item = Result<SinkWriterStreamResponse, Status>> + Send + 'static;
type SinkCoordinatorStreamStream: Stream<Item = Result<SinkCoordinatorStreamResponse, Status>> + Send + 'static;
type GetEventStreamStream: Stream<Item = Result<GetEventStreamResponse, Status>> + Send + 'static;
// Required methods
fn sink_writer_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<SinkWriterStreamRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SinkWriterStreamStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn sink_coordinator_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<SinkCoordinatorStreamRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SinkCoordinatorStreamStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn validate_sink<'life0, 'async_trait>(
&'life0 self,
request: Request<ValidateSinkRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ValidateSinkResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_event_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<GetEventStreamRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetEventStreamStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn validate_source<'life0, 'async_trait>(
&'life0 self,
request: Request<ValidateSourceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ValidateSourceResponse>, 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 ConnectorServiceServer.
Required Associated Types§
sourcetype SinkWriterStreamStream: Stream<Item = Result<SinkWriterStreamResponse, Status>> + Send + 'static
type SinkWriterStreamStream: Stream<Item = Result<SinkWriterStreamResponse, Status>> + Send + 'static
Server streaming response type for the SinkWriterStream method.
sourcetype SinkCoordinatorStreamStream: Stream<Item = Result<SinkCoordinatorStreamResponse, Status>> + Send + 'static
type SinkCoordinatorStreamStream: Stream<Item = Result<SinkCoordinatorStreamResponse, Status>> + Send + 'static
Server streaming response type for the SinkCoordinatorStream method.
sourcetype GetEventStreamStream: Stream<Item = Result<GetEventStreamResponse, Status>> + Send + 'static
type GetEventStreamStream: Stream<Item = Result<GetEventStreamResponse, Status>> + Send + 'static
Server streaming response type for the GetEventStream method.