pub trait Sink<I>: Providerwhere
I: Send + 'static,{
// Required method
fn send(
&self,
input: I,
) -> impl Future<Output = Result<(), AppError>> + Send;
}Expand description
Write-only (Kafka publish, webhook, S3 put, log sink).
Implementations must apply downstream backpressure or return a typed error instead of buffering without a bound.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".