pub fn priority(&self) -> ProcessResult<Priority> {
        let result = unsafe { processthreadsapi::GetPriorityClass(*self.handle) };
        if result == 0 {
            Err(Error::last_os_error().with_ffi("GetPriorityClass").into())
        } else {
            Priority::try_from(result).map_err(Into::into)
        }
    }
/// Get process priority.
///
/// Note that `set_priority` is located at `ProcessHandle<SetInformation>` impl
Get process priority.
Note that `set_priority` is located at `ProcessHandle` impl
Get process priority . Note that ` set_priority ` is located at ` ProcessHandle ` impl
pub fn priority(&self) -> ProcessResult<Priority> {
        let result = unsafe { processthreadsapi::GetPriorityClass(*self.handle) };
        if result == 0 {
            Err(Error::last_os_error().with_ffi("GetPriorityClass").into())
        } else {
            Priority::try_from(result).map_err(Into::into)
        }
    }
pub fn priority ( & self ) -> ProcessResult < Priority > { let result = unsafe { processthreadsapi :: GetPriorityClass ( * self . handle ) } ; if result == 0 { Err ( Error :: last_os_error ( ) . with_ffi ( " " ) . into ( ) ) } else { Priority :: try_from ( result ) . map_err ( Into :: into ) } }
Get process priority.
Get process priority .
&self
&self