hakoniwa 1.4.0

Process isolation for Linux using namespaces, resource limits, cgroups, landlock and seccomp.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub(crate) type Result<T> = std::result::Result<T, Error>;

#[allow(clippy::enum_variant_names)]
#[derive(thiserror::Error, Debug)]
pub(crate) enum Error {
    #[error("parse line `{line}..` failed: {errmsg}")]
    InvalidLine { line: String, errmsg: String },
    #[error("not enough parts")]
    NotEnoughParts,
    #[error(transparent)]
    StdIoError(#[from] std::io::Error),
    #[error(transparent)]
    StdNumParseIntError(#[from] std::num::ParseIntError),
}