1pub mod commands;
2pub mod fd;
3pub mod fs;
4pub mod input;
5pub(crate) mod network;
6use crate::error;
7pub use crate::sys::tokio_process as process;
8pub mod resource;
9pub mod signal;
10pub mod terminal;
11pub(crate) mod users;
12
13#[derive(Debug, thiserror::Error)]
15pub enum PlatformError {
16 #[error("system error: {0}")]
18 ErrnoError(#[from] nix::errno::Errno),
19}
20
21impl From<nix::errno::Errno> for error::ErrorKind {
22 fn from(err: nix::errno::Errno) -> Self {
23 PlatformError::ErrnoError(err).into()
24 }
25}