pub fn disconnect<F>(mut self, disconnect: F) -> Self
    where
        F: Fn(&mut St, bool) + 'static,
    {
        self.disconnect = Some(Rc::new(disconnect));
        self
    }
/// Callback to execute on disconnect
///
/// Second parameter indicates error occured during disconnect.
Callback to execute on disconnect
Second parameter indicates error occured during disconnect.
Callback to execute on disconnect Second parameter indicates error occured during disconnect .
pub fn disconnect<F>(mut self, disconnect: F) -> Self
    where
        F: Fn(&mut St, bool) + 'static,
    {
        self.disconnect = Some(Rc::new(disconnect));
        self
    }
pub fn disconnect < F > ( mut self , disconnect : F ) -> Self where F : Fn ( & mut St , bool ) + ' static , { self . disconnect = Some ( Rc :: new ( disconnect ) ) ; self }
Callback to execute on disconnect
Second parameter indicates error occured during disconnect.
Callback to execute on disconnect Second parameter indicates error occured during disconnect .
mut self
disconnect
F