pub fn take_session_info(&mut self) -> Result<SessionInfo, LspSessionInfoError> {
        match self.content.take_session_info() {
            Ok(session) => {
                self.refresh_content_length();
                Ok(session)
            }
            Err(x) => Err(x),
        }
    }
/// Creates a session's info by inspecting the content for session parameters, removing the
/// session parameters from the content. Will also adjust the content length header to match
/// the new size of the content.
Creates a session's info by inspecting the content for session parameters, removing the
session parameters from the content. Will also adjust the content length header to match
the new size of the content.
Creates a session ' s info by inspecting the content for session parameters removing the session parameters from the content . Will also adjust the content length header to match the new size of the content .
pub fn take_session_info(&mut self) -> Result<SessionInfo, LspSessionInfoError> {
        match self.content.take_session_info() {
            Ok(session) => {
                self.refresh_content_length();
                Ok(session)
            }
            Err(x) => Err(x),
        }
    }
pub fn take_session_info ( & mut self ) -> Result < SessionInfo , LspSessionInfoError > { match self . content . take_session_info ( ) { Ok ( session ) => { self . refresh_content_length ( ) ; Ok ( session ) } Err ( x ) => Err ( x ) , } }
Creates a session's info by inspecting the content for session parameters, removing the
session parameters from the content.
Creates a session ' s info by inspecting the content for session parameters removing the session parameters from the content .
&mut self