# Process IDs
`Pid` is a transparent wrapper around the platform process identifier type.
| Linux, Android, macOS, iOS, FreeBSD, NetBSD | `pid_t` |
| Windows | `usize` |
## Conversions
```rust
use sinf::system::Pid;
let pid = Pid::from(1337);
let pid = Pid::from_u32(1337);
let raw: u32 = pid.as_u32();
```
`Pid` implements `Clone`, `Copy`, `Hash`, `Ord`, `Display` and `FromStr`.
## Current process
```rust
use sinf::system::get_current_pid;
match get_current_pid() {
Ok(pid) => println!("current pid: {pid}"),
Err(e) => println!("unsupported: {e}"),
}
```
Unsupported targets are rejected at compile time.