pub trait EnvironmentMetadataRepository:
Send
+ Sync
+ Debug {
// Required methods
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
) -> Pin<Box<dyn Future<Output = Result<EnvironmentMetadataSnapshot>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_scopes<'life0, 'life1, 'async_trait>(
&'life0 self,
after: Option<&'life1 ResourceScope>,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceScope>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compare_and_swap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
expected_version: u64,
snapshot: &'life2 EnvironmentMetadataSnapshot,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Required Methods§
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
) -> Pin<Box<dyn Future<Output = Result<EnvironmentMetadataSnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn list_scopes<'life0, 'life1, 'async_trait>(
&'life0 self,
after: Option<&'life1 ResourceScope>,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceScope>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_scopes<'life0, 'life1, 'async_trait>(
&'life0 self,
after: Option<&'life1 ResourceScope>,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceScope>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Stable tenant/project pagination for background lifecycle reconciliation.
Sourcefn compare_and_swap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
expected_version: u64,
snapshot: &'life2 EnvironmentMetadataSnapshot,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn compare_and_swap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
expected_version: u64,
snapshot: &'life2 EnvironmentMetadataSnapshot,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Atomically replace metadata when the stored scope version equals
expected_version. Returns false on a concurrent writer conflict.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".