pub trait ResourceSequential {
// Required methods
fn max_safe_sequence(
&self,
) -> impl Future<Output = Result<i64, OperationOutcomeError>> + Send;
fn get_sequence(
&self,
tenant_id: &TenantId,
project_id: &ProjectId,
sequence_id: u64,
safe_sequence: i64,
count: Option<u64>,
) -> impl Future<Output = Result<Vec<ResourcePollingValue>, OperationOutcomeError>> + Send;
}Required Methods§
Sourcefn max_safe_sequence(
&self,
) -> impl Future<Output = Result<i64, OperationOutcomeError>> + Send
fn max_safe_sequence( &self, ) -> impl Future<Output = Result<i64, OperationOutcomeError>> + Send
The highest resources.sequence a consumer may read up to without
skipping a row that is still being written: every row at or below it
that will ever commit is visible to any snapshot taken after this call
returns.
Sourcefn get_sequence(
&self,
tenant_id: &TenantId,
project_id: &ProjectId,
sequence_id: u64,
safe_sequence: i64,
count: Option<u64>,
) -> impl Future<Output = Result<Vec<ResourcePollingValue>, OperationOutcomeError>> + Send
fn get_sequence( &self, tenant_id: &TenantId, project_id: &ProjectId, sequence_id: u64, safe_sequence: i64, count: Option<u64>, ) -> impl Future<Output = Result<Vec<ResourcePollingValue>, OperationOutcomeError>> + Send
The project’s rows with sequence_id < sequence <= safe_sequence, in
sequence order. safe_sequence must come from a
max_safe_sequence call that returned
before this query’s snapshot was taken.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".