procfs_core/process/
namespaces.rsuse std::collections::HashMap;
use std::ffi::OsString;
use std::path::PathBuf;
#[cfg(feature = "serde1")]
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Eq)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub struct Namespace {
pub ns_type: OsString,
pub path: PathBuf,
pub identifier: u64,
pub device_id: u64,
}
impl PartialEq for Namespace {
fn eq(&self, other: &Self) -> bool {
self.identifier == other.identifier && self.device_id == other.device_id
}
}
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub struct Namespaces(pub HashMap<OsString, Namespace>);