async fn creatable_cluster(&self) -> Option<CreatableMiniCluster> {
        // The goal of the following code is to bail out (return None
        // from the function) if any of the optional weak references
        // aren't present so that the cluster is recreated correctly
        Some(CreatableMiniCluster {
            router: server_from_weak(self.router.as_ref())?,
            ingester: server_from_weak(self.ingester.as_ref())?,
            querier: server_from_weak(self.querier.as_ref())?,
            compactor: server_from_weak(self.compactor.as_ref())?,
        })
    }
/// Returns a creatable MiniCluster that will reuse the existing
/// [TestServer]s. Return None if they are no longer active
Returns a creatable MiniCluster that will reuse the existing
[TestServer]s. Return None if they are no longer active
Returns a creatable MiniCluster that will reuse the existing [ TestServer ] s . Return None if they are no longer active
async fn creatable_cluster(&self) -> Option<CreatableMiniCluster> {
        // The goal of the following code is to bail out (return None
        // from the function) if any of the optional weak references
        // aren't present so that the cluster is recreated correctly
        Some(CreatableMiniCluster {
            router: server_from_weak(self.router.as_ref())?,
            ingester: server_from_weak(self.ingester.as_ref())?,
            querier: server_from_weak(self.querier.as_ref())?,
            compactor: server_from_weak(self.compactor.as_ref())?,
        })
    }
async fn creatable_cluster ( & self ) -> Option < CreatableMiniCluster > { // The goal of the following code is to bail out (return None // from the function) if any of the optional weak references // aren't present so that the cluster is recreated correctly Some ( CreatableMiniCluster { router : server_from_weak ( self . router . as_ref ( ) ) ? , ingester : server_from_weak ( self . ingester . as_ref ( ) ) ? , querier : server_from_weak ( self . querier . as_ref ( ) ) ? , compactor : server_from_weak ( self . compactor . as_ref ( ) ) ? , } ) }
Returns a creatable MiniCluster that will reuse the existing
[TestServer]s. Return None if they are no longer active
Returns a creatable MiniCluster that will reuse the existing [ TestServer ] s . Return None if they are no longer active
&self
&self