/// Distribute a new configuration, if possible
Distribute a new configuration, if possible
Distribute a new configuration if possible
pub fn update(&self, config: BotConfig) -> bool {
        let tx = self.0.lock().unwrap();
        if let Some(tx) = &*tx {
            tx.send(Arc::new(config)).is_ok()
        } else {
            false
        }
    }
pub fn update ( & self , config : BotConfig ) -> bool { let tx = self . 0 . lock ( ) . unwrap ( ) ; if let Some ( tx ) = & * tx { tx . send ( Arc :: new ( config ) ) . is_ok ( ) } else { false } }
Distribute a new configuration, if possible
Distribute a new configuration if possible
&self
config
BotConfig