async fn run_or_panic(self, service_name: &str) {
        let should_not_return = self.try_run_loop().await;
        let msg = handle_failure(service_name, should_not_return);
        panic!(msg)
    }
/// NB: Do not reimplement this one: the function keeps in check that if the
/// failure happens during run loop, the program will panic reporting the
/// failure. To implement the actual run loop please provide implementation
/// for [`try_run_loop()`]
Do not reimplement this one: the function keeps in check that if the
failure happens during run loop, the program will panic reporting the
failure. To implement the actual run loop please provide implementation
for [`try_run_loop()`]
Do not reimplement this one : the function keeps in check that if the failure happens during run loop the program will panic reporting the failure . To implement the actual run loop please provide implementation for [ ` try_run_loop () ` ]
async fn run_or_panic(self, service_name: &str) {
        let should_not_return = self.try_run_loop().await;
        let msg = handle_failure(service_name, should_not_return);
        panic!(msg)
    }
async fn run_or_panic ( self , service_name : & str ) { let should_not_return = self . try_run_loop ( ) . await ; let msg = handle_failure ( service_name , should_not_return ) ; panic ! ( msg ) }
NB: Do not reimplement this one: the function keeps in check that if the
failure happens during run loop, the program will panic reporting the
failure.
NB : Do not reimplement this one : the function keeps in check that if the failure happens during run loop the program will panic reporting the failure .
self
service_name
&str
self
service_name
&str