pub fn clear_session(&mut self, id: &u64) -> Option<MediaState> {
        if Some(id) == self.active_session_id.as_ref() {
            self.update_active_session_id(None);
        }
        self.map.remove(id)
    }
/// Removes the MediaState specified by `id` from the map, should it exist.
/// If the session was currently active, clears `self.active_session_id`.
/// Returns the removed MediaState.
Removes the MediaState specified by `id` from the map, should it exist.
If the session was currently active, clears `self.active_session_id`.
Returns the removed MediaState.
Removes the MediaState specified by ` id ` from the map should it exist . If the session was currently active clears ` self . active_session_id ` . Returns the removed MediaState .
pub fn clear_session(&mut self, id: &u64) -> Option<MediaState> {
        if Some(id) == self.active_session_id.as_ref() {
            self.update_active_session_id(None);
        }
        self.map.remove(id)
    }
pub fn clear_session ( & mut self , id : & u64 ) -> Option < MediaState > { if Some ( id ) == self . active_session_id . as_ref ( ) { self . update_active_session_id ( None ) ; } self . map . remove ( id ) }
Removes the MediaState specified by `id` from the map, should it exist.
Removes the MediaState specified by ` id ` from the map should it exist .
&mut self
id
&u64