Skip to main content

FailedIndexingProvider

Trait FailedIndexingProvider 

Source
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§

Source

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.

Source

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".

Implementors§