pub trait HttpSink:
Send
+ Sync
+ 'static {
type Input;
type Output;
type Encoder: HttpEventEncoder<Self::Input>;
// Required methods
fn build_encoder(&self) -> Self::Encoder;
fn build_request(
&self,
events: Self::Output,
) -> impl Future<Output = Result<Request<Bytes>>> + Send;
}
Required Associated Types§
Required Methods§
fn build_encoder(&self) -> Self::Encoder
fn build_request( &self, events: Self::Output, ) -> impl Future<Output = Result<Request<Bytes>>> + Send
Object Safety§
This trait is not object safe.