pub fn update_active_session_id(&mut self, id: Option<u64>) -> Option<u64> {
        if self.active_session_id != id {
            self.clear_notification_responders();
            let previous_active_session_id = self.active_session_id.take();
            self.active_session_id = id;
            previous_active_session_id
        } else {
            None
        }
    }
/// Updates the active session with the new session specified by `id`.
/// Clear all outstanding notifications, if the active session has changed.
/// If the updated active session_id has changed, return old active id.
Updates the active session with the new session specified by `id`.
Clear all outstanding notifications, if the active session has changed.
If the updated active session_id has changed, return old active id.
Updates the active session with the new session specified by ` id ` . Clear all outstanding notifications if the active session has changed . If the updated active session_id has changed return old active id .
pub fn update_active_session_id(&mut self, id: Option<u64>) -> Option<u64> {
        if self.active_session_id != id {
            self.clear_notification_responders();
            let previous_active_session_id = self.active_session_id.take();
            self.active_session_id = id;
            previous_active_session_id
        } else {
            None
        }
    }
pub fn update_active_session_id ( & mut self , id : Option < u64 > ) -> Option < u64 > { if self . active_session_id != id { self . clear_notification_responders ( ) ; let previous_active_session_id = self . active_session_id . take ( ) ; self . active_session_id = id ; previous_active_session_id } else { None } }
Updates the active session with the new session specified by `id`.
Updates the active session with the new session specified by ` id ` .
&mut self
id
Option<u64>