fn isalive(&self) -> PyResult<bool> {
        // let result: Result<bool, OsString> = py.allow_threads(move || self.pty.is_alive());
        match self.pty.is_alive() {
            Ok(alive) => Ok(alive),
            Err(error) => {
                let error_str: String = error.to_str().unwrap().to_owned();
                Err(WinptyError::new_err(string_to_static_str(error_str)))
            }
        }
    }
/// Determine if the application process that is running behind the pseudoterminal is alive.
///
/// Returns
/// -------
/// alive: bool
///     True, the process is alive. False, otherwise.
///
/// Raises
/// ------
/// WinptyError
///     If there was an error whilst trying to determine the status of the process.
///
Determine if the application process that is running behind the pseudoterminal is alive.
Returns

bool
True, the process is alive. False, otherwise.

Raises

WinptyError
If there was an error whilst trying to determine the status of the process.
Determine if the application process that is running behind the pseudoterminal is alive . Returns bool True the process is alive . False otherwise . Raises WinptyError If there was an error whilst trying to determine the status of the process .
fn isalive(&self) -> PyResult<bool> {
        // let result: Result<bool, OsString> = py.allow_threads(move || self.pty.is_alive());
        match self.pty.is_alive() {
            Ok(alive) => Ok(alive),
            Err(error) => {
                let error_str: String = error.to_str().unwrap().to_owned();
                Err(WinptyError::new_err(string_to_static_str(error_str)))
            }
        }
    }
fn isalive ( & self ) -> PyResult < bool > { // let result: Result<bool, OsString> = py.allow_threads(move || self.pty.is_alive()); match self . pty . is_alive ( ) { Ok ( alive ) => Ok ( alive ) , Err ( error ) => { let error_str : String = error . to_str ( ) . unwrap ( ) . to_owned ( ) ; Err ( WinptyError :: new_err ( string_to_static_str ( error_str ) ) ) } } }
Determine if the application process that is running behind the pseudoterminal is alive.
Determine if the application process that is running behind the pseudoterminal is alive .
&self
&self