Skip to main content

HostRepository

Trait HostRepository 

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

Source

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.

Implementors§