pub trait BackendEventIngestClient {
// Required method
fn ingest(
&self,
batch: &EventBatch,
) -> Result<EventIngestResult, BackendError>;
}Expand description
Port for backend event ingestion.
Implementations handle HTTP communication to submit local audit events to the backend for centralized observability.
Required Methods§
Sourcefn ingest(&self, batch: &EventBatch) -> Result<EventIngestResult, BackendError>
fn ingest(&self, batch: &EventBatch) -> Result<EventIngestResult, BackendError>
Submit a batch of audit events to the backend.
The batch includes an idempotency key so retries do not produce duplicate events on the server.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".