mirror of
https://github.com/MeiK2333/river.git
synced 2025-11-04 14:49:40 +08:00
22 lines
328 B
Rust
22 lines
328 B
Rust
use std::result;
|
|
|
|
#[derive(Debug)]
|
|
pub enum Error {
|
|
Error(String),
|
|
}
|
|
|
|
pub type Result<T> = result::Result<T, Error>;
|
|
|
|
pub struct Cgroup {
|
|
pid: u32
|
|
}
|
|
|
|
impl Cgroup {
|
|
pub fn new(pid: u32) -> Result<Self> {
|
|
return Ok(Cgroup { pid });
|
|
}
|
|
pub fn attach(&self) -> Result<()> {
|
|
return Ok(());
|
|
}
|
|
}
|