pub trait RemoteResolver: Send + Sync {
// Required method
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
remote_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn ObjectStore>, Option<String>), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
How to resolve a remote name to an ObjectStore. Production
uses a gix-based resolver; tests inject a closure that returns
a MockStore (the in-memory test backend gated on test-util).
Required Methods§
Sourcefn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
remote_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn ObjectStore>, Option<String>), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
remote_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn ObjectStore>, Option<String>), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve remote_name → (object store, optional bucket prefix).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".