pub trait HostRepository: Send + Sync {
// Required method
fn snapshot<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = FleetResult<TopologySnapshot>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Source of immutable fleet topology snapshots.
Required Methods§
Sourcefn snapshot<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = FleetResult<TopologySnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn snapshot<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = FleetResult<TopologySnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Loads one internally consistent topology snapshot.