fn iseof(&self, py: Python) -> PyResult<bool> {
        let result: Result<bool, OsString> = py.allow_threads(|| self.pty.is_eof());
        match result {
            Ok(eof) => Ok(eof),
            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 reached EOF.
///
/// Returns
/// -------
/// eof: False
///     True, if the process emitted the end-of-file escape sequence. False, otherwise.
///
/// Raises
/// ------
/// WinptyError
///     If there was an error whilst trying to determine the EOF status of the process.
///
Determine if the application process that is running behind the pseudoterminal reached EOF.
Returns

False
True, if the process emitted the end-of-file escape sequence. False, otherwise.

Raises

WinptyError
If there was an error whilst trying to determine the EOF status of the process.
Determine if the application process that is running behind the pseudoterminal reached EOF . Returns False True if the process emitted the end - of - file escape sequence . False otherwise . Raises WinptyError If there was an error whilst trying to determine the EOF status of the process .
fn iseof(&self, py: Python) -> PyResult<bool> {
        let result: Result<bool, OsString> = py.allow_threads(|| self.pty.is_eof());
        match result {
            Ok(eof) => Ok(eof),
            Err(error) => {
                let error_str: String = error.to_str().unwrap().to_owned();
                Err(WinptyError::new_err(string_to_static_str(error_str)))
            }
        }
    }
fn iseof ( & self , py : Python ) -> PyResult < bool > { let result : Result < bool , OsString > = py . allow_threads ( | | self . pty . is_eof ( ) ) ; match result { Ok ( eof ) => Ok ( eof ) , 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 reached EOF.
Determine if the application process that is running behind the pseudoterminal reached EOF .
&self
py
Python
&self
py
Python