fn config(&self) -> Result<Arc<Config>> {
        let stage = self.stage.read();
        match &*stage {
            ServerStage::Startup { .. } => Err(Error::IdNotSet),
            ServerStage::InitReady { config, .. }
            | ServerStage::Initializing { config, .. }
            | ServerStage::Initialized { config, .. } => Ok(Arc::clone(config)),
        }
    }
/// Returns the config for this server if server id has been set
Returns the config for this server if server id has been set
Returns the config for this server if server id has been set
fn config(&self) -> Result<Arc<Config>> {
        let stage = self.stage.read();
        match &*stage {
            ServerStage::Startup { .. } => Err(Error::IdNotSet),
            ServerStage::InitReady { config, .. }
            | ServerStage::Initializing { config, .. }
            | ServerStage::Initialized { config, .. } => Ok(Arc::clone(config)),
        }
    }
fn config ( & self ) -> Result < Arc < Config > > { let stage = self . stage . read ( ) ; match & * stage { ServerStage :: Startup { .. } => Err ( Error :: IdNotSet ) , ServerStage :: InitReady { config , .. } | ServerStage :: Initializing { config , .. } | ServerStage :: Initialized { config , .. } => Ok ( Arc :: clone ( config ) ) , } }
Returns the config for this server if server id has been set
Returns the config for this server if server id has been set
&self
&self