pub trait FailedIndexingProvider {
// Required methods
fn record_failures(
&self,
failures: &[FailedIndexRecord],
) -> impl Future<Output = Result<(), OperationOutcomeError>> + Send;
fn search(
&self,
tenant: &TenantId,
project: &ProjectId,
) -> impl Future<Output = Result<Vec<FailedIndexEntry>, OperationOutcomeError>> + Send;
}Required Methods§
Sourcefn record_failures(
&self,
failures: &[FailedIndexRecord],
) -> impl Future<Output = Result<(), OperationOutcomeError>> + Send
fn record_failures( &self, failures: &[FailedIndexRecord], ) -> impl Future<Output = Result<(), OperationOutcomeError>> + Send
Durably records resources that failed search indexing so they can be skipped (instead of retried forever) and inspected later. No-op on an empty list.
Sourcefn search(
&self,
tenant: &TenantId,
project: &ProjectId,
) -> impl Future<Output = Result<Vec<FailedIndexEntry>, OperationOutcomeError>> + Send
fn search( &self, tenant: &TenantId, project: &ProjectId, ) -> impl Future<Output = Result<Vec<FailedIndexEntry>, OperationOutcomeError>> + Send
Lists recorded indexing failures for a tenant/project, most recently failed first.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".