rust-macios 0.4.2

Apple Frameworks for Rust
Documentation
1
2
3
4
5
6
7
use rust_macios::foundation::NSProcessInfo;

fn main() {
    let thermal_state = NSProcessInfo::process_info().thermal_state();

    println!("{thermal_state:?}");
}