pub async fn app_guard<'this>(
        &'this self,
    ) -> Result<AppSyncGuard<'this>, ServicesOff> {
        let guard = AppSyncGuard { inner: self.sync.write().await };
        if self.is_connected() {
            Ok(guard)
        } else {
            Err(ServicesOff)
        }
    }
/// Locks the synchronization between application and services for the
/// application (exclusive).
Locks the synchronization between application and services for the
application (exclusive).
Locks the synchronization between application and services for the application ( exclusive ) .
pub async fn app_guard<'this>(
        &'this self,
    ) -> Result<AppSyncGuard<'this>, ServicesOff> {
        let guard = AppSyncGuard { inner: self.sync.write().await };
        if self.is_connected() {
            Ok(guard)
        } else {
            Err(ServicesOff)
        }
    }
pub async fn app_guard < ' this > ( & ' this self , ) -> Result < AppSyncGuard < ' this > , ServicesOff > { let guard = AppSyncGuard { inner : self . sync . write ( ) . await } ; if self . is_connected ( ) { Ok ( guard ) } else { Err ( ServicesOff ) } }
Locks the synchronization between application and services for the
application (exclusive).
Locks the synchronization between application and services for the application ( exclusive ) .
&'this self
&'this self