cgroups_rs/systemd/error.rs
1// Copyright (c) 2025 Ant Group
2//
3// SPDX-License-Identifier: Apache-2.0 or MIT
4//
5
6pub type Result<T> = std::result::Result<T, Error>;
7
8#[derive(Debug, thiserror::Error)]
9pub enum Error {
10 #[error("invalid argument")]
11 InvalidArgument,
12
13 #[error("obsolete systemd, please upgrade your systemd")]
14 ObsoleteSystemd,
15
16 #[error("resource not supported by cgroups v1")]
17 CgroupsV1NotSupported,
18}